/*      */ package hmc;
/*      */ 
/*      */ import Serialio.SerialPortLocal;
/*      */ import java.awt.CardLayout;
/*      */ import java.awt.Color;
/*      */ import java.awt.Component;
/*      */ import java.awt.Container;
/*      */ import java.awt.Dimension;
/*      */ import java.awt.Font;
/*      */ import java.awt.event.ActionEvent;
/*      */ import java.awt.event.ActionListener;
/*      */ import java.io.File;
/*      */ import java.util.ArrayList;
/*      */ import java.util.Set;
/*      */ import java.util.TreeMap;
/*      */ import javax.swing.BorderFactory;
/*      */ import javax.swing.DefaultComboBoxModel;
/*      */ import javax.swing.DefaultListModel;
/*      */ import javax.swing.GroupLayout;
/*      */ import javax.swing.GroupLayout.Alignment;
/*      */ import javax.swing.GroupLayout.ParallelGroup;
/*      */ import javax.swing.GroupLayout.SequentialGroup;
/*      */ import javax.swing.JButton;
/*      */ import javax.swing.JCheckBox;
/*      */ import javax.swing.JColorChooser;
/*      */ import javax.swing.JComboBox;
/*      */ import javax.swing.JFileChooser;
/*      */ import javax.swing.JInternalFrame;
/*      */ import javax.swing.JLabel;
/*      */ import javax.swing.JList;
/*      */ import javax.swing.JOptionPane;
/*      */ import javax.swing.JPanel;
/*      */ import javax.swing.JPasswordField;
/*      */ import javax.swing.JScrollPane;
/*      */ import javax.swing.JSeparator;
/*      */ import javax.swing.JTabbedPane;
/*      */ import javax.swing.JTextArea;
/*      */ import javax.swing.JTextField;
/*      */ import javax.swing.JToggleButton;
/*      */ import javax.swing.LayoutStyle.ComponentPlacement;
/*      */ import javax.swing.ListCellRenderer;
/*      */ import javax.swing.event.ListSelectionEvent;
/*      */ import javax.swing.event.ListSelectionListener;
/*      */ 
/*      */ public class OptionsGUI extends JInternalFrame
/*      */   implements ActionListener, ListSelectionListener
/*      */ {
/*      */   private TopLevelGUI TLGUI;
/*      */   private Communicator comm;
/*   82 */   private DefaultListModel connectionDirectoryModel = new DefaultListModel();
/*   83 */   private DefaultListModel loadedFilesModel = new DefaultListModel();
/*   84 */   private ArrayList<File> loadedFiles = new ArrayList();
/*   85 */   private DefaultComboBoxModel baudrateModel = new DefaultComboBoxModel();
/*   86 */   private DefaultComboBoxModel baudrateOptionsModel = new DefaultComboBoxModel();
/*   87 */   private DefaultComboBoxModel parityModel = new DefaultComboBoxModel(new String[] { "None", "Odd", "Even", "Mark", "Space" });
/*   88 */   private DefaultComboBoxModel stopbitsModel = new DefaultComboBoxModel(new String[] { "1", "1.5", "2" });
/*   89 */   private DefaultComboBoxModel databitsModel = new DefaultComboBoxModel(new String[] { "5", "6", "7", "8" });
/*   90 */   private DefaultComboBoxModel portListingModel = new DefaultComboBoxModel();
/*      */   private File ButtonConfigFile;
/*      */   private JTabbedPane TabbedOptions;
/*      */   private JPanel WindowTab;
/*      */   private JLabel BackgroundColor;
/*      */   private JLabel BackgroundColorLabel;
/*      */   private JLabel ButtonColor;
/*      */   private JLabel ButtonColorLabel;
/*      */   private JLabel ButtonText;
/*      */   private JLabel ButtonTextLabel;
/*      */   private JButton ChangeBackgroundColorButton;
/*      */   private JButton ChangeButtonColorButton;
/*      */   private JButton ChangeButtonTextButton;
/*      */   private JButton ChangeMenuColorButton;
/*      */   private JButton ChangeMenuTextButton;
/*      */   private JButton ChangeTextColorButton;
/*      */   private JComboBox ColorSchemeComboBox;
/*      */   private JLabel ColorSchemeLabel;
/*      */   private JPanel ColorsPanel;
/*      */   private JComboBox LookAndFeelComboBox;
/*      */   private JLabel LookAndFeelLabel;
/*      */   private JLabel MenuColor;
/*      */   private JLabel MenuColorLabel;
/*      */   private JLabel MenuText;
/*      */   private JLabel MenuTextLabel;
/*      */   private JLabel TextColor;
/*      */   private JLabel TextColorLabel;
/*      */   private JPanel WindowOptionsPanel;
/*      */   private JSeparator WindowOptionsSeparator;
/*      */   private JPanel ConnectionsTab;
/*      */   private JPanel CardsPanel;
/*      */   private CardLayout cl;
/*      */   private JPanel ConnectionDirectoryPanel;
/*      */   private JLabel ConnectionDirectoryLabel;
/*      */   private JScrollPane jScrollPane2;
/*      */   private JList ConnectionDirectoryList;
/*      */   private JLabel PropertiesAndSettingsLabel;
/*      */   private JButton NamePropertiesButton;
/*      */   private JButton ToolBarsButton;
/*      */   private JButton ScriptsButton;
/*      */   private JButton SaveConnectionButton;
/*      */   private JButton PortSettingsButton;
/*      */   private JButton FontsAndColorsButton;
/*      */   private JButton CreateNewConnectionButton;
/*      */   private JButton DeleteConnectionButton;
/*      */   private JLabel LogBaseNameLabel;
/*      */   private JTextField LogBaseNameTextField;
/*      */   private JLabel LogDirectoryLabel;
/*      */   private JLabel LogOptionLabel;
/*      */   private JCheckBox LogOutputTypeCheckBox;
/*      */   private JButton LogSelectDirectoryButton;
/*      */   private JPanel NamePropertiesPanel;
/*      */   private JSeparator NamePropertiesSeparator1;
/*      */   private JSeparator NamePropertiesSeparator2;
/*      */   private JLabel PortNameLabel;
/*      */   private JTextField PortNameTextField;
/*      */   private JLabel PortTypeLabel;
/*      */   private JToggleButton SSHPortToggleButton;
/*      */   private JToggleButton SerialPortToggleButton;
/*      */   private JPanel FontsAndColorsPanel;
/*      */   private JComboBox ConsoleBoxBackgroundColorComboBox;
/*      */   private JLabel ConsoleBoxBackgroundColorLabel;
/*      */   private JLabel ConsoleBoxTextColorLabel;
/*      */   private JComboBox ConsoleBoxTextEditorComboBox;
/*      */   private JComboBox ConsoleBoxTextFontComboBox;
/*      */   private JLabel ConsoleBoxTextFontLabel;
/*      */   private JComboBox CommandBoxBackgroundColorComboBox;
/*      */   private JLabel CommandBoxBackgroundColorLabel;
/*      */   private JComboBox CommandBoxTextColorComboBox;
/*      */   private JLabel CommandBoxTextColorLabel;
/*      */   private JComboBox CommandBoxTextFontComboBox;
/*      */   private JLabel CommandBoxTextFontLabel;
/*      */   private JCheckBox SameAsCheckBox;
/*      */   private JSeparator FontsandColorsPanelSeparator;
/*      */   private JPanel ScriptsPanel;
/*      */   private JScrollPane jScrollPane3;
/*      */   private JButton SelectScriptDirectoryButton;
/*      */   private JButton SelectFilesButton;
/*      */   private JLabel SelectedScriptsLabel;
/*      */   private JList SelectedScriptsList;
/*      */   private JLabel SetScriptDirectoryLabel;
/*      */   private JLabel ScriptDirectoryLabel;
/*      */   private JLabel SetLibraryDirectoryLabel;
/*      */   private JLabel LibraryDirectoryLabel;
/*      */   private JButton SelectLibraryDirectoryButton;
/*      */   private JSeparator ScriptsPanelSeparator;
/*      */   private JPanel SerialPortSettingsPanel;
/*      */   private JLabel SerialPortLabel;
/*      */   private JTextField SerialPortEntryBox;
/*      */   private JComboBox SerialPortComboBox;
/*      */   private JComboBox BaudRateComboBox;
/*      */   private JLabel BaudRateLabel;
/*      */   private JLabel ParityConnectionLabel;
/*      */   private JComboBox ParityComboBox;
/*      */   private JComboBox DataBitsComboBox;
/*      */   private JLabel DataBitsLabel;
/*      */   private JComboBox StopBitsComboBox;
/*      */   private JLabel StopBitsLabel;
/*      */   private JButton ManualEntryButton;
/*      */   private JSeparator SerialPortSettingsPanelSeparator;
/*      */   private JPanel SSHPortSettingsPanel;
/*      */   private JLabel SSHPortLabel;
/*      */   private JTextField SSHPortEntryBox;
/*      */   private JLabel UserNameLabel;
/*      */   private JTextField UserNameTextField;
/*      */   private JLabel PasswordLabel;
/*      */   private JPasswordField PasswordTextField;
/*      */   private JLabel ShellTypeLabel;
/*      */   private JTextField ShellTypeTextField;
/*      */   private JSeparator SSHPortSettingsPanelSeparator;
/*      */   private JPanel ToolBarsPanel;
/*      */   private JLabel TopToolBarLabel;
/*      */   private JToggleButton TopToolBarToggleButton;
/*      */   private JLabel SideToolBarLabel;
/*      */   private JToggleButton SideToolBarToggleButton;
/*      */   private JLabel BottomToolBarLabel;
/*      */   private JToggleButton BottomToolBarToggleButton;
/*      */   private JLabel ConfigFileLabel;
/*      */   private JButton SelectConfigFileButton;
/*      */   private JSeparator ToolBarsPanelSeparator;
/*      */   private JScrollPane jScrollPane1;
/*      */   private JPanel HelpAndSupportTab;
/*      */   private JPanel jPanel1;
/*      */   private JPanel AdvancedOptionsPanel;
/*      */   private JLabel CVCLabel;
/*      */   private JTextArea CVCTextArea;
/*      */   private JLabel FileLocationsLabel;
/*      */   private JTextArea FileLocationsTextArea;
/*      */   private JLabel FutherAssistanceLabel;
/*      */   private JLabel ScriptWithLibrariesLabel;
/*      */   private JTextArea ScriptWithLibrariesTextArea;
/*      */   private JLabel ScriptWithoutLibrariesLabel;
/*      */   private JTextArea ScriptsWithoutLibrariesTextArea;
/*      */   private JScrollPane jScrollPane4;
/* 2434 */   private static TreeMap<String, Color> COLORS = new TreeMap();
/*      */ 
/* 2451 */   private ListCellRenderer myRenderer = new ListCellRenderer()
/*      */   {
/*      */     public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus)
/*      */     {
/* 2457 */       String val = value.toString();
/* 2458 */       JLabel label = new JLabel(val);
/* 2459 */       if (isSelected)
/*      */       {
/* 2461 */         label.setBackground(list.getSelectionBackground());
/* 2462 */         label.setForeground(list.getSelectionForeground());
/*      */       }
/*      */       else
/*      */       {
/* 2466 */         label.setBackground((Color)OptionsGUI.COLORS.get(val.toUpperCase()));
/* 2467 */         if (val.toUpperCase().equals("WHITE"))
/* 2468 */           label.setForeground((Color)OptionsGUI.COLORS.get("BLACK"));
/*      */         else
/* 2470 */           label.setForeground((Color)OptionsGUI.COLORS.get("WHITE"));
/*      */       }
/* 2472 */       label.setOpaque(true);
/* 2473 */       return label;
/*      */     }
/* 2451 */   };
/*      */ 
/*      */   public OptionsGUI(TopLevelGUI TLGUI)
/*      */   {
/*  100 */     super("Options and Settings", false, true, false, true);
/*      */ 
/*  106 */     this.TLGUI = TLGUI;
/*      */ 
/*  108 */     initComponents();
/*      */   }
/*      */ 
/*      */   private void initWindowTab()
/*      */   {
/*  115 */     this.TabbedOptions = new JTabbedPane();
/*  116 */     this.HelpAndSupportTab = new JPanel();
/*  117 */     this.WindowOptionsPanel = new JPanel();
/*  118 */     this.ColorSchemeLabel = new JLabel();
/*  119 */     this.LookAndFeelLabel = new JLabel();
/*  120 */     this.ColorSchemeComboBox = new JComboBox();
/*  121 */     this.LookAndFeelComboBox = new JComboBox();
/*  122 */     this.WindowOptionsSeparator = new JSeparator();
/*  123 */     this.ColorsPanel = new JPanel();
/*  124 */     this.BackgroundColorLabel = new JLabel();
/*  125 */     this.TextColorLabel = new JLabel();
/*  126 */     this.BackgroundColor = new JLabel();
/*  127 */     this.TextColor = new JLabel();
/*  128 */     this.MenuColorLabel = new JLabel();
/*  129 */     this.MenuTextLabel = new JLabel();
/*  130 */     this.MenuColor = new JLabel();
/*  131 */     this.MenuText = new JLabel();
/*  132 */     this.ChangeBackgroundColorButton = new JButton();
/*  133 */     this.ChangeTextColorButton = new JButton();
/*  134 */     this.ChangeMenuColorButton = new JButton();
/*  135 */     this.ChangeMenuTextButton = new JButton();
/*  136 */     this.ButtonColorLabel = new JLabel();
/*  137 */     this.ButtonTextLabel = new JLabel();
/*  138 */     this.ButtonColor = new JLabel();
/*  139 */     this.ButtonText = new JLabel();
/*  140 */     this.ChangeButtonTextButton = new JButton();
/*  141 */     this.ChangeButtonColorButton = new JButton();
/*      */ 
/*  143 */     setDefaultCloseOperation(3);
/*  144 */     setTitle("Options");
/*  145 */     setBackground(new Color(0, 51, 153));
/*  146 */     setForeground(new Color(0, 0, 0));
/*  147 */     setResizable(false);
/*      */ 
/*  149 */     this.TabbedOptions.setBackground(new Color(0, 51, 102));
/*  150 */     this.TabbedOptions.setForeground(new Color(255, 255, 255));
/*  151 */     this.TabbedOptions.setOpaque(true);
/*      */ 
/*  153 */     this.HelpAndSupportTab.setBackground(new Color(0, 102, 153));
/*  154 */     this.HelpAndSupportTab.setForeground(new Color(255, 255, 255));
/*      */ 
/*  156 */     this.WindowOptionsPanel.setBackground(new Color(255, 255, 255));
/*      */ 
/*  158 */     this.ColorSchemeLabel.setText("Color Scheme");
/*      */ 
/*  160 */     this.LookAndFeelLabel.setText("Look and Feel");
/*      */ 
/*  162 */     this.ColorSchemeComboBox.setModel(new DefaultComboBoxModel(new String[] { "Default", "Red", "Blue", "Green" }));
/*  163 */     this.ColorSchemeComboBox.setActionCommand("30");
/*  164 */     this.ColorSchemeComboBox.addActionListener(this);
/*      */ 
/*  166 */     this.LookAndFeelComboBox.setModel(new DefaultComboBoxModel(new String[] { "System UI", "Metal UI" }));
/*  167 */     this.LookAndFeelComboBox.setActionCommand("31");
/*  168 */     this.LookAndFeelComboBox.addActionListener(this);
/*      */ 
/*  170 */     this.BackgroundColorLabel.setText("Background Color");
/*      */ 
/*  172 */     this.TextColorLabel.setText("Text Color");
/*      */ 
/*  174 */     this.MenuColorLabel.setText("Menu Color");
/*      */ 
/*  176 */     this.MenuTextLabel.setText("Menu Text");
/*      */ 
/*  178 */     this.ChangeBackgroundColorButton.setText("Change");
/*  179 */     this.ChangeBackgroundColorButton.setActionCommand("32");
/*  180 */     this.ChangeBackgroundColorButton.addActionListener(this);
/*      */ 
/*  182 */     this.ChangeTextColorButton.setText("Change");
/*  183 */     this.ChangeTextColorButton.setActionCommand("33");
/*  184 */     this.ChangeTextColorButton.addActionListener(this);
/*      */ 
/*  186 */     this.ChangeMenuColorButton.setText("Change");
/*  187 */     this.ChangeMenuColorButton.setActionCommand("34");
/*  188 */     this.ChangeMenuColorButton.addActionListener(this);
/*      */ 
/*  190 */     this.ChangeMenuTextButton.setText("Change");
/*  191 */     this.ChangeMenuTextButton.setActionCommand("35");
/*  192 */     this.ChangeMenuTextButton.addActionListener(this);
/*      */ 
/*  194 */     this.ChangeButtonTextButton.setText("Change");
/*  195 */     this.ChangeButtonTextButton.setActionCommand("37");
/*  196 */     this.ChangeButtonTextButton.addActionListener(this);
/*      */ 
/*  198 */     this.ChangeButtonColorButton.setText("Change");
/*  199 */     this.ChangeButtonColorButton.setActionCommand("36");
/*  200 */     this.ChangeButtonColorButton.addActionListener(this);
/*      */ 
/*  202 */     this.ButtonColorLabel.setText("Button Color");
/*      */ 
/*  204 */     this.ButtonTextLabel.setText("Button Text");
/*      */ 
/*  206 */     this.BackgroundColor.setOpaque(true);
/*  207 */     this.BackgroundColor.setText(" ");
/*      */ 
/*  209 */     this.TextColor.setOpaque(true);
/*  210 */     this.TextColor.setText(" ");
/*      */ 
/*  212 */     this.MenuColor.setOpaque(true);
/*  213 */     this.MenuColor.setText(" ");
/*      */ 
/*  215 */     this.MenuText.setOpaque(true);
/*  216 */     this.MenuText.setText(" ");
/*      */ 
/*  218 */     this.ButtonColor.setOpaque(true);
/*  219 */     this.ButtonColor.setText(" ");
/*      */ 
/*  221 */     this.ButtonText.setOpaque(true);
/*  222 */     this.ButtonText.setText(" ");
/*      */ 
/*  224 */     GroupLayout ColorsPanelLayout = new GroupLayout(this.ColorsPanel);
/*  225 */     this.ColorsPanel.setLayout(ColorsPanelLayout);
/*  226 */     ColorsPanelLayout.setHorizontalGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, ColorsPanelLayout.createSequentialGroup().addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.BackgroundColorLabel, -1, -1, 32767).addComponent(this.TextColorLabel, -1, 84, 32767).addComponent(this.MenuColorLabel, -1, 84, 32767).addComponent(this.MenuTextLabel, -1, 84, 32767).addComponent(this.ButtonColorLabel, -1, 84, 32767).addComponent(this.ButtonTextLabel, -1, 84, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.TextColor, GroupLayout.Alignment.TRAILING, -1, 40, 32767).addComponent(this.BackgroundColor, GroupLayout.Alignment.TRAILING, -1, 40, 32767).addComponent(this.MenuColor, -1, -1, 32767).addComponent(this.MenuText, -1, -1, 32767).addComponent(this.ButtonColor, -1, -1, 32767).addComponent(this.ButtonText, -1, -1, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.ChangeTextColorButton, -1, -1, 32767).addComponent(this.ChangeBackgroundColorButton, -1, -1, 32767).addComponent(this.ChangeMenuColorButton, -1, -1, 32767).addComponent(this.ChangeButtonColorButton, -1, -1, 32767).addComponent(this.ChangeButtonTextButton, -1, -1, 32767).addComponent(this.ChangeMenuTextButton, -1, -1, 32767))));
/*      */ 
/*  253 */     ColorsPanelLayout.setVerticalGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ColorsPanelLayout.createSequentialGroup().addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ChangeBackgroundColorButton).addComponent(this.BackgroundColor).addComponent(this.BackgroundColorLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ChangeTextColorButton).addComponent(this.TextColor).addComponent(this.TextColorLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ChangeMenuColorButton).addComponent(this.MenuColor).addComponent(this.MenuColorLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ChangeMenuTextButton).addComponent(this.MenuText).addComponent(this.MenuTextLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ChangeButtonColorButton).addComponent(this.ButtonColor).addComponent(this.ButtonColorLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ChangeButtonTextButton).addComponent(this.ButtonText).addComponent(this.ButtonTextLabel))));
/*      */ 
/*  287 */     GroupLayout WindowOptionsPanelLayout = new GroupLayout(this.WindowOptionsPanel);
/*  288 */     this.WindowOptionsPanel.setLayout(WindowOptionsPanelLayout);
/*  289 */     WindowOptionsPanelLayout.setHorizontalGroup(WindowOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, WindowOptionsPanelLayout.createSequentialGroup().addContainerGap().addGroup(WindowOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.WindowOptionsSeparator, GroupLayout.Alignment.LEADING, -1, 566, 32767).addGroup(WindowOptionsPanelLayout.createSequentialGroup().addGroup(WindowOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(WindowOptionsPanelLayout.createSequentialGroup().addComponent(this.ColorSchemeLabel, -1, 141, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.ColorSchemeComboBox, -2, 188, -2)).addGroup(WindowOptionsPanelLayout.createSequentialGroup().addComponent(this.LookAndFeelLabel, -1, 141, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.LookAndFeelComboBox, -2, 188, -2))).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.ColorsPanel, -2, -1, -2))).addContainerGap()));
/*      */ 
/*  309 */     WindowOptionsPanelLayout.setVerticalGroup(WindowOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(WindowOptionsPanelLayout.createSequentialGroup().addContainerGap().addGroup(WindowOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.ColorsPanel, -2, -1, -2).addGroup(GroupLayout.Alignment.LEADING, WindowOptionsPanelLayout.createSequentialGroup().addGroup(WindowOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ColorSchemeComboBox, -2, -1, -2).addComponent(this.ColorSchemeLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(WindowOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.LookAndFeelComboBox, -2, -1, -2).addComponent(this.LookAndFeelLabel)))).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.WindowOptionsSeparator, -2, 10, -2).addContainerGap(122, 32767)));
/*      */ 
/*  328 */     GroupLayout WindowOptionsTabLayout = new GroupLayout(this.WindowTab);
/*  329 */     this.WindowTab.setLayout(WindowOptionsTabLayout);
/*  330 */     WindowOptionsTabLayout.setHorizontalGroup(WindowOptionsTabLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.WindowOptionsPanel, -1, -1, 32767));
/*      */ 
/*  334 */     WindowOptionsTabLayout.setVerticalGroup(WindowOptionsTabLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.WindowOptionsPanel, -1, -1, 32767));
/*      */ 
/*  339 */     this.TabbedOptions.addTab("Window Options", this.WindowTab);
/*      */   }
/*      */ 
/*      */   private void initConnectionsTab()
/*      */   {
/*      */     try
/*      */     {
/*  348 */       this.NamePropertiesPanel = new JPanel();
/*  349 */       this.LogOutputTypeCheckBox = new JCheckBox();
/*  350 */       this.NamePropertiesSeparator2 = new JSeparator();
/*  351 */       this.LogBaseNameTextField = new JTextField();
/*  352 */       this.LogDirectoryLabel = new JLabel();
/*  353 */       this.LogBaseNameLabel = new JLabel();
/*  354 */       this.LogSelectDirectoryButton = new JButton();
/*  355 */       this.LogOptionLabel = new JLabel();
/*  356 */       this.PortNameLabel = new JLabel();
/*  357 */       this.PortNameTextField = new JTextField();
/*  358 */       this.NamePropertiesSeparator1 = new JSeparator();
/*  359 */       this.PortTypeLabel = new JLabel();
/*  360 */       this.SerialPortToggleButton = new JToggleButton();
/*  361 */       this.SSHPortToggleButton = new JToggleButton();
/*  362 */       this.UserNameLabel = new JLabel();
/*  363 */       this.UserNameTextField = new JTextField();
/*  364 */       this.PasswordLabel = new JLabel();
/*  365 */       this.PasswordTextField = new JPasswordField();
/*  366 */       this.SerialPortEntryBox = new JTextField();
/*  367 */       this.SSHPortEntryBox = new JTextField();
/*  368 */       this.ConnectionDirectoryPanel = new JPanel();
/*  369 */       this.jScrollPane2 = new JScrollPane();
/*  370 */       this.ConnectionDirectoryList = new JList();
/*  371 */       this.NamePropertiesButton = new JButton();
/*  372 */       this.ToolBarsButton = new JButton();
/*  373 */       this.ScriptsButton = new JButton();
/*  374 */       this.SaveConnectionButton = new JButton();
/*  375 */       this.PortSettingsButton = new JButton();
/*  376 */       this.FontsAndColorsButton = new JButton();
/*  377 */       this.ConnectionDirectoryLabel = new JLabel();
/*  378 */       this.PropertiesAndSettingsLabel = new JLabel();
/*  379 */       this.SerialPortSettingsPanel = new JPanel();
/*  380 */       this.SerialPortLabel = new JLabel();
/*  381 */       this.SSHPortSettingsPanel = new JPanel();
/*  382 */       this.SSHPortLabel = new JLabel();
/*  383 */       this.ShellTypeLabel = new JLabel();
/*  384 */       this.ShellTypeTextField = new JTextField();
/*  385 */       this.SerialPortComboBox = new JComboBox();
/*  386 */       this.BaudRateLabel = new JLabel();
/*  387 */       this.BaudRateComboBox = new JComboBox();
/*  388 */       this.ParityConnectionLabel = new JLabel();
/*  389 */       this.ParityComboBox = new JComboBox();
/*  390 */       this.DataBitsLabel = new JLabel();
/*  391 */       this.DataBitsComboBox = new JComboBox();
/*  392 */       this.StopBitsLabel = new JLabel();
/*  393 */       this.StopBitsComboBox = new JComboBox();
/*  394 */       this.ManualEntryButton = new JButton();
/*  395 */       this.SerialPortSettingsPanelSeparator = new JSeparator();
/*  396 */       this.SSHPortSettingsPanelSeparator = new JSeparator();
/*  397 */       this.FontsAndColorsPanel = new JPanel();
/*  398 */       this.ConsoleBoxBackgroundColorLabel = new JLabel();
/*  399 */       this.ConsoleBoxTextColorLabel = new JLabel();
/*  400 */       this.ConsoleBoxTextFontLabel = new JLabel();
/*  401 */       this.FontsandColorsPanelSeparator = new JSeparator();
/*  402 */       this.ConsoleBoxBackgroundColorComboBox = new JComboBox(COLORS.keySet().toArray());
/*  403 */       this.ConsoleBoxTextEditorComboBox = new JComboBox(COLORS.keySet().toArray());
/*  404 */       this.ConsoleBoxTextFontComboBox = new JComboBox();
/*  405 */       this.CommandBoxBackgroundColorLabel = new JLabel();
/*  406 */       this.CommandBoxTextColorLabel = new JLabel();
/*  407 */       this.CommandBoxTextFontLabel = new JLabel();
/*  408 */       this.CommandBoxTextFontComboBox = new JComboBox();
/*  409 */       this.CommandBoxTextColorComboBox = new JComboBox(COLORS.keySet().toArray());
/*  410 */       this.CommandBoxBackgroundColorComboBox = new JComboBox(COLORS.keySet().toArray());
/*  411 */       this.SameAsCheckBox = new JCheckBox();
/*  412 */       this.ToolBarsPanel = new JPanel();
/*  413 */       this.TopToolBarLabel = new JLabel();
/*  414 */       this.SideToolBarLabel = new JLabel();
/*  415 */       this.BottomToolBarLabel = new JLabel();
/*  416 */       this.TopToolBarToggleButton = new JToggleButton();
/*  417 */       this.SideToolBarToggleButton = new JToggleButton();
/*  418 */       this.BottomToolBarToggleButton = new JToggleButton();
/*  419 */       this.SelectConfigFileButton = new JButton();
/*  420 */       this.ConfigFileLabel = new JLabel();
/*  421 */       this.ToolBarsPanelSeparator = new JSeparator();
/*  422 */       this.ScriptsPanel = new JPanel();
/*  423 */       this.jScrollPane1 = new JScrollPane();
/*  424 */       this.SelectedScriptsList = new JList();
/*  425 */       this.SelectFilesButton = new JButton();
/*  426 */       this.SetScriptDirectoryLabel = new JLabel();
/*  427 */       this.SelectScriptDirectoryButton = new JButton();
/*  428 */       this.SelectedScriptsLabel = new JLabel();
/*  429 */       this.ScriptDirectoryLabel = new JLabel();
/*  430 */       this.ScriptsPanelSeparator = new JSeparator();
/*  431 */       this.NamePropertiesPanel = new JPanel();
/*  432 */       this.PortNameLabel = new JLabel();
/*  433 */       this.PortNameTextField = new JTextField();
/*  434 */       this.PortTypeLabel = new JLabel();
/*  435 */       this.SerialPortToggleButton = new JToggleButton();
/*  436 */       this.SSHPortToggleButton = new JToggleButton();
/*  437 */       this.CreateNewConnectionButton = new JButton();
/*  438 */       this.DeleteConnectionButton = new JButton();
/*  439 */       this.SelectLibraryDirectoryButton = new JButton();
/*  440 */       this.SetLibraryDirectoryLabel = new JLabel();
/*  441 */       this.LibraryDirectoryLabel = new JLabel();
/*      */ 
/*  443 */       setDefaultCloseOperation(3);
/*  444 */       setBackground(TopLevelGUI.windowBackground);
/*  445 */       setForeground(TopLevelGUI.windowText);
/*  446 */       setResizable(false);
/*      */ 
/*  448 */       this.TabbedOptions.setOpaque(true);
/*      */ 
/*  450 */       this.ConnectionDirectoryList.setModel(this.connectionDirectoryModel);
/*  451 */       Object[] temp = TopLevelGUI.ConnectionDirectory.keySet().toArray();
/*  452 */       for (int x = 0; x < temp.length; x++)
/*      */       {
/*  454 */         this.connectionDirectoryModel.addElement(temp[x].toString());
/*      */       }
/*  456 */       this.jScrollPane2.setViewportView(this.ConnectionDirectoryList);
/*  457 */       this.ConnectionDirectoryList.setSelectedIndex(0);
/*  458 */       this.ConnectionDirectoryList.addListSelectionListener(this);
/*      */ 
/*  460 */       this.NamePropertiesButton.setText("Name Properties");
/*  461 */       this.NamePropertiesButton.setActionCommand("20");
/*  462 */       this.NamePropertiesButton.addActionListener(this);
/*      */ 
/*  464 */       this.ToolBarsButton.setText("Tool Bars");
/*  465 */       this.ToolBarsButton.setActionCommand("25");
/*  466 */       this.ToolBarsButton.addActionListener(this);
/*      */ 
/*  468 */       this.ScriptsButton.setText("Scripts");
/*  469 */       this.ScriptsButton.setActionCommand("22");
/*  470 */       this.ScriptsButton.addActionListener(this);
/*      */ 
/*  472 */       this.SaveConnectionButton.setText("Save Changes");
/*  473 */       this.SaveConnectionButton.setBorder(BorderFactory.createEtchedBorder(0));
/*  474 */       this.SaveConnectionButton.setBackground(Color.RED);
/*  475 */       this.SaveConnectionButton.setActionCommand("24");
/*  476 */       this.SaveConnectionButton.addActionListener(this);
/*      */ 
/*  478 */       this.PortSettingsButton.setText("Port Settings");
/*  479 */       this.PortSettingsButton.setActionCommand("23");
/*  480 */       this.PortSettingsButton.addActionListener(this);
/*      */ 
/*  482 */       this.FontsAndColorsButton.setText("Font and Colors");
/*  483 */       this.FontsAndColorsButton.setActionCommand("21");
/*  484 */       this.FontsAndColorsButton.addActionListener(this);
/*      */ 
/*  486 */       this.CreateNewConnectionButton.setText("New Entry");
/*  487 */       this.CreateNewConnectionButton.setActionCommand("26");
/*  488 */       this.CreateNewConnectionButton.addActionListener(this);
/*      */ 
/*  490 */       this.DeleteConnectionButton.setText("Delete Entry");
/*  491 */       this.DeleteConnectionButton.setActionCommand("27");
/*  492 */       this.DeleteConnectionButton.addActionListener(this);
/*      */ 
/*  494 */       this.ConnectionDirectoryLabel.setText("Entries");
/*      */ 
/*  498 */       GroupLayout ConnectionDirectoryPanelLayout = new GroupLayout(this.ConnectionDirectoryPanel);
/*  499 */       this.ConnectionDirectoryPanel.setLayout(ConnectionDirectoryPanelLayout);
/*  500 */       ConnectionDirectoryPanelLayout.setHorizontalGroup(ConnectionDirectoryPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ConnectionDirectoryPanelLayout.createSequentialGroup().addContainerGap().addGroup(ConnectionDirectoryPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.ConnectionDirectoryLabel, -1, 172, 32767).addGroup(ConnectionDirectoryPanelLayout.createSequentialGroup().addComponent(this.CreateNewConnectionButton, 50, 50, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.DeleteConnectionButton, 50, 50, 32767)).addComponent(this.jScrollPane2, -1, 172, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(ConnectionDirectoryPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.NamePropertiesButton, -2, 120, -2).addComponent(this.FontsAndColorsButton, -2, 120, -2).addComponent(this.ToolBarsButton, -2, 120, -2).addComponent(this.SaveConnectionButton, -2, 120, -2).addComponent(this.PortSettingsButton, -2, 120, -2).addComponent(this.ScriptsButton, -2, 120, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addContainerGap()));
/*      */ 
/*  523 */       ConnectionDirectoryPanelLayout.setVerticalGroup(ConnectionDirectoryPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ConnectionDirectoryPanelLayout.createSequentialGroup().addContainerGap().addGroup(ConnectionDirectoryPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ConnectionDirectoryPanelLayout.createSequentialGroup().addComponent(this.NamePropertiesButton, -2, 45, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.PortSettingsButton, -2, 45, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.ScriptsButton, -2, 45, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.ToolBarsButton, -2, 45, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.FontsAndColorsButton, -2, 45, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.SaveConnectionButton, -2, 45, -2)).addGroup(ConnectionDirectoryPanelLayout.createSequentialGroup().addGroup(ConnectionDirectoryPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.CreateNewConnectionButton).addComponent(this.DeleteConnectionButton)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.ConnectionDirectoryLabel).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.jScrollPane2, -2, 260, -2))).addContainerGap()));
/*      */ 
/*  552 */       this.NamePropertiesPanel.setPreferredSize(new Dimension(268, 322));
/*      */ 
/*  554 */       this.LogOutputTypeCheckBox.setText("Output as HTML");
/*      */ 
/*  556 */       this.LogBaseNameTextField.setText("Data_Log_");
/*      */ 
/*  558 */       this.LogDirectoryLabel.setText("Logs/");
/*      */ 
/*  560 */       this.LogBaseNameLabel.setText("Enter Base Name:");
/*      */ 
/*  562 */       this.LogSelectDirectoryButton.setText("Select Directory");
/*  563 */       this.LogSelectDirectoryButton.setActionCommand("29");
/*  564 */       this.LogSelectDirectoryButton.addActionListener(this);
/*      */ 
/*  566 */       this.LogOptionLabel.setHorizontalAlignment(0);
/*  567 */       this.LogOptionLabel.setText("Log Options");
/*      */ 
/*  569 */       this.PortTypeLabel.setHorizontalAlignment(0);
/*      */ 
/*  571 */       this.SerialPortToggleButton.setPreferredSize(new Dimension(125, 23));
/*      */ 
/*  573 */       this.SSHPortToggleButton.setPreferredSize(new Dimension(125, 23));
/*      */ 
/*  575 */       this.PortNameLabel.setText("Name:");
/*  576 */       this.PortNameLabel.setHorizontalAlignment(0);
/*      */ 
/*  578 */       this.PortTypeLabel.setText("Connection Type");
/*  579 */       this.PortTypeLabel.setHorizontalAlignment(0);
/*      */ 
/*  581 */       this.SerialPortToggleButton.setText("Serial Connection");
/*      */ 
/*  583 */       this.SerialPortToggleButton.setActionCommand("45");
/*  584 */       this.SerialPortToggleButton.addActionListener(this);
/*      */ 
/*  586 */       this.SSHPortToggleButton.setText("SSH Connection");
/*      */ 
/*  588 */       this.SSHPortToggleButton.setActionCommand("46");
/*  589 */       this.SSHPortToggleButton.addActionListener(this);
/*      */ 
/*  591 */       this.PortNameTextField.setText((String)this.ConnectionDirectoryList.getSelectedValue());
/*      */ 
/*  593 */       GroupLayout NamePropertiesPanelLayout = new GroupLayout(this.NamePropertiesPanel);
/*  594 */       this.NamePropertiesPanel.setLayout(NamePropertiesPanelLayout);
/*  595 */       NamePropertiesPanelLayout.setHorizontalGroup(NamePropertiesPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addGroup(NamePropertiesPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.LogBaseNameLabel).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.LogBaseNameTextField, -1, 152, 32767)).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.NamePropertiesSeparator2, -1, 248, 32767)).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.PortTypeLabel, -1, 248, 32767)).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.NamePropertiesSeparator1, -1, 248, 32767)).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.PortNameLabel, -2, 100, -2).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.PortNameTextField, -1, 138, 32767)).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addGap(68, 68, 68).addGroup(NamePropertiesPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.SerialPortToggleButton, -2, -1, -2).addComponent(this.SSHPortToggleButton, -2, -1, -2))).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.LogDirectoryLabel, 230, 230, 230)).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.LogOutputTypeCheckBox).addComponent(this.LogSelectDirectoryButton, -1, 143, 32767)).addGroup(NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addComponent(this.LogOptionLabel, -1, 248, 32767))).addContainerGap()));
/*      */ 
/*  635 */       NamePropertiesPanelLayout.setVerticalGroup(NamePropertiesPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, NamePropertiesPanelLayout.createSequentialGroup().addContainerGap().addGroup(NamePropertiesPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.PortNameLabel).addComponent(this.PortNameTextField, -2, -1, -2)).addGap(18, 18, 18).addComponent(this.NamePropertiesSeparator1, -2, 10, -2).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.PortTypeLabel).addGap(18, 18, 18).addComponent(this.SerialPortToggleButton, -2, -1, -2).addGap(18, 18, 18).addComponent(this.SSHPortToggleButton, -2, -1, -2).addGap(18, 18, 18).addComponent(this.NamePropertiesSeparator2, -2, 10, -2).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.LogOptionLabel).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(NamePropertiesPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.LogBaseNameLabel).addComponent(this.LogBaseNameTextField, -2, -1, -2)).addGap(11, 11, 11).addGroup(NamePropertiesPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.LogSelectDirectoryButton).addComponent(this.LogOutputTypeCheckBox)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.LogDirectoryLabel).addContainerGap()));
/*      */ 
/*  667 */       this.SerialPortSettingsPanel.setPreferredSize(new Dimension(268, 322));
/*      */ 
/*  669 */       this.SerialPortLabel.setText("Port");
/*      */ 
/*  671 */       this.SerialPortEntryBox.setVisible(false);
/*      */ 
/*  673 */       ManualEvent();
/*  674 */       this.SerialPortComboBox.setModel(this.portListingModel);
/*      */ 
/*  676 */       this.BaudRateLabel.setText("Baud Rate");
/*      */ 
/*  678 */       this.BaudRateComboBox.setModel(this.baudrateModel);
/*  679 */       initBaudrateModel();
/*      */ 
/*  682 */       this.ParityConnectionLabel.setText("Parity");
/*      */ 
/*  684 */       this.ParityComboBox.setModel(this.parityModel);
/*      */ 
/*  687 */       this.DataBitsLabel.setText("Data Bits");
/*      */ 
/*  689 */       this.DataBitsComboBox.setModel(this.databitsModel);
/*      */ 
/*  692 */       this.StopBitsLabel.setText("Stop Bits");
/*      */ 
/*  694 */       this.StopBitsComboBox.setModel(this.stopbitsModel);
/*      */ 
/*  697 */       this.ManualEntryButton.setText("Scan Ports");
/*  698 */       this.ManualEntryButton.setActionCommand("41");
/*  699 */       this.ManualEntryButton.addActionListener(this);
/*      */ 
/*  701 */       GroupLayout SerialPortSettingsPanelLayout = new GroupLayout(this.SerialPortSettingsPanel);
/*  702 */       this.SerialPortSettingsPanel.setLayout(SerialPortSettingsPanelLayout);
/*  703 */       SerialPortSettingsPanelLayout.setHorizontalGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, SerialPortSettingsPanelLayout.createSequentialGroup().addContainerGap().addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(SerialPortSettingsPanelLayout.createSequentialGroup().addComponent(this.SerialPortLabel, -1, 93, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.SerialPortComboBox, -2, 145, -2).addComponent(this.SerialPortEntryBox, -2, 145, -2)).addGroup(GroupLayout.Alignment.TRAILING, SerialPortSettingsPanelLayout.createSequentialGroup().addGap(110, 110, 110).addComponent(this.ManualEntryButton, -1, 110, 32767)).addGroup(GroupLayout.Alignment.TRAILING, SerialPortSettingsPanelLayout.createSequentialGroup().addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.StopBitsLabel, GroupLayout.Alignment.LEADING, -1, 99, 32767).addComponent(this.ParityConnectionLabel, -1, 99, 32767).addComponent(this.BaudRateLabel, -1, 99, 32767).addComponent(this.DataBitsLabel, GroupLayout.Alignment.LEADING, -1, 99, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING, false).addComponent(this.StopBitsComboBox, 0, -1, 32767).addComponent(this.DataBitsComboBox, 0, -1, 32767).addComponent(this.ParityComboBox, 0, -1, 32767).addComponent(this.BaudRateComboBox, 0, 145, 32767))).addComponent(this.SerialPortSettingsPanelSeparator, -1, 268, 32767)).addContainerGap()));
/*      */ 
/*  732 */       SerialPortSettingsPanelLayout.setVerticalGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(SerialPortSettingsPanelLayout.createSequentialGroup().addGap(50, 50, 50).addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.SerialPortLabel).addComponent(this.SerialPortComboBox, -2, -1, -2).addComponent(this.SerialPortEntryBox, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ManualEntryButton)).addGap(18, 18, 18).addComponent(this.SerialPortSettingsPanelSeparator, -2, 10, -2).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.BaudRateLabel).addComponent(this.BaudRateComboBox, -2, -1, -2)).addGap(18, 18, 18).addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ParityConnectionLabel).addComponent(this.ParityComboBox, -2, -1, -2)).addGap(18, 18, 18).addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.DataBitsLabel).addComponent(this.DataBitsComboBox, -2, -1, -2)).addGap(18, 18, 18).addGroup(SerialPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.StopBitsLabel).addComponent(this.StopBitsComboBox, -2, -1, -2)).addContainerGap(27, 32767)));
/*      */ 
/*  765 */       this.SSHPortSettingsPanel.setPreferredSize(new Dimension(268, 322));
/*      */ 
/*  767 */       this.SSHPortLabel.setText("Hostname or IP:");
/*      */ 
/*  769 */       this.PasswordTextField.setEchoChar('*');
/*      */ 
/*  771 */       this.UserNameLabel.setText("Enter Username:");
/*      */ 
/*  773 */       this.PasswordLabel.setText("Enter Password:");
/*      */ 
/*  775 */       this.ShellTypeLabel.setText("Enter Shell type:");
/*      */ 
/*  777 */       this.ShellTypeTextField.setText("xterm");
/*      */ 
/*  779 */       GroupLayout SSHPortSettingsPanelLayout = new GroupLayout(this.SSHPortSettingsPanel);
/*  780 */       this.SSHPortSettingsPanel.setLayout(SSHPortSettingsPanelLayout);
/*  781 */       SSHPortSettingsPanelLayout.setHorizontalGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, SSHPortSettingsPanelLayout.createSequentialGroup().addContainerGap().addGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(SSHPortSettingsPanelLayout.createSequentialGroup().addComponent(this.SSHPortLabel, -1, 93, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.SSHPortEntryBox, -2, 145, -2)).addGroup(GroupLayout.Alignment.TRAILING, SSHPortSettingsPanelLayout.createSequentialGroup().addGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.UserNameLabel, GroupLayout.Alignment.LEADING, -1, 99, 32767).addComponent(this.PasswordLabel, -1, 99, 32767).addComponent(this.ShellTypeLabel, -1, 99, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.TRAILING, false).addComponent(this.UserNameTextField, 0, 129, 32767).addComponent(this.PasswordTextField, 0, 129, 32767).addComponent(this.ShellTypeTextField, 0, 129, 32767))).addComponent(this.SSHPortSettingsPanelSeparator, -1, 268, 32767)).addContainerGap()));
/*      */ 
/*  804 */       SSHPortSettingsPanelLayout.setVerticalGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(SSHPortSettingsPanelLayout.createSequentialGroup().addGap(84, 84, 84).addGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.SSHPortLabel).addComponent(this.SSHPortEntryBox, -2, -1, -2)).addGap(18, 18, 18).addComponent(this.SSHPortSettingsPanelSeparator, -2, 10, -2).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.UserNameLabel).addComponent(this.UserNameTextField, -2, -1, -2)).addGap(18, 18, 18).addGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.PasswordLabel).addComponent(this.PasswordTextField, -2, -1, -2)).addGap(18, 18, 18).addGroup(SSHPortSettingsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ShellTypeLabel).addComponent(this.ShellTypeTextField, -2, -1, -2)).addContainerGap(27, 32767)));
/*      */ 
/*  828 */       this.FontsAndColorsPanel.setPreferredSize(new Dimension(268, 322));
/*      */ 
/*  830 */       this.ConsoleBoxBackgroundColorLabel.setText("Console Box Background Color");
/*      */ 
/*  832 */       this.ConsoleBoxTextColorLabel.setText("Console Box Text Color");
/*      */ 
/*  834 */       this.ConsoleBoxTextFontLabel.setText("Console Box Text Font");
/*      */ 
/*  836 */       this.ConsoleBoxBackgroundColorComboBox.setRenderer(this.myRenderer);
/*      */ 
/*  838 */       this.ConsoleBoxTextEditorComboBox.setRenderer(this.myRenderer);
/*      */ 
/*  840 */       this.ConsoleBoxTextFontComboBox.setModel(new DefaultComboBoxModel(new String[] { "Arial", "Courier New", "Lucida Console", "Microsoft Sans Serif", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana" }));
/*      */ 
/*  842 */       this.CommandBoxBackgroundColorLabel.setText("Command Box Background Color");
/*      */ 
/*  844 */       this.CommandBoxTextColorLabel.setText("Command Box Text Color");
/*      */ 
/*  846 */       this.CommandBoxTextFontLabel.setText("Command Box Text Font");
/*      */ 
/*  848 */       this.CommandBoxTextFontComboBox.setModel(new DefaultComboBoxModel(new String[] { "Arial", "Courier New", "Lucida Console", "Microsoft Sans Serif", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana" }));
/*      */ 
/*  850 */       this.CommandBoxTextColorComboBox.setRenderer(this.myRenderer);
/*      */ 
/*  852 */       this.CommandBoxBackgroundColorComboBox.setRenderer(this.myRenderer);
/*      */ 
/*  854 */       this.SameAsCheckBox.setText("Command Box Same As Console Box");
/*  855 */       this.SameAsCheckBox.setActionCommand("28");
/*  856 */       this.SameAsCheckBox.addActionListener(this);
/*      */ 
/*  858 */       GroupLayout FontsAndColorsPanelLayout = new GroupLayout(this.FontsAndColorsPanel);
/*  859 */       this.FontsAndColorsPanel.setLayout(FontsAndColorsPanelLayout);
/*  860 */       FontsAndColorsPanelLayout.setHorizontalGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(FontsAndColorsPanelLayout.createSequentialGroup().addContainerGap().addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.FontsandColorsPanelSeparator, -1, 248, 32767).addComponent(this.SameAsCheckBox, -1, 248, 32767).addGroup(FontsAndColorsPanelLayout.createSequentialGroup().addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.ConsoleBoxBackgroundColorLabel).addComponent(this.ConsoleBoxTextColorLabel).addComponent(this.ConsoleBoxTextFontLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.ConsoleBoxTextFontComboBox, 0, 113, 32767).addComponent(this.ConsoleBoxTextEditorComboBox, 0, 113, 32767).addComponent(this.ConsoleBoxBackgroundColorComboBox, 0, 113, 32767))).addGroup(FontsAndColorsPanelLayout.createSequentialGroup().addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.CommandBoxBackgroundColorLabel).addComponent(this.CommandBoxTextColorLabel).addComponent(this.CommandBoxTextFontLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.CommandBoxTextFontComboBox, 0, 101, 32767).addComponent(this.CommandBoxTextColorComboBox, 0, 101, 32767).addComponent(this.CommandBoxBackgroundColorComboBox, 0, 101, 32767)))).addContainerGap()));
/*      */ 
/*  889 */       FontsAndColorsPanelLayout.setVerticalGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(FontsAndColorsPanelLayout.createSequentialGroup().addGap(50, 50, 50).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ConsoleBoxBackgroundColorLabel).addComponent(this.ConsoleBoxBackgroundColorComboBox, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ConsoleBoxTextColorLabel).addComponent(this.ConsoleBoxTextEditorComboBox, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ConsoleBoxTextFontLabel).addComponent(this.ConsoleBoxTextFontComboBox, -2, -1, -2)).addGap(18, 18, 18).addComponent(this.FontsandColorsPanelSeparator, -2, 10, -2).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addComponent(this.SameAsCheckBox).addGap(18, 18, 18).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.CommandBoxBackgroundColorLabel).addComponent(this.CommandBoxBackgroundColorComboBox, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.CommandBoxTextColorLabel).addComponent(this.CommandBoxTextColorComboBox, -2, -1, -2)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(FontsAndColorsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.CommandBoxTextFontLabel).addComponent(this.CommandBoxTextFontComboBox, -2, -1, -2)).addContainerGap(19, 32767)));
/*      */ 
/*  923 */       this.ToolBarsPanel.setPreferredSize(new Dimension(268, 322));
/*      */ 
/*  925 */       this.TopToolBarLabel.setHorizontalAlignment(0);
/*  926 */       this.TopToolBarLabel.setText("Top Toolbar");
/*      */ 
/*  929 */       this.SideToolBarLabel.setHorizontalAlignment(0);
/*  930 */       this.SideToolBarLabel.setText("Side Toolbar");
/*      */ 
/*  933 */       this.BottomToolBarLabel.setHorizontalAlignment(0);
/*  934 */       this.BottomToolBarLabel.setText("Bottom Toolbar");
/*      */ 
/*  936 */       this.TopToolBarToggleButton.setText(this.TopToolBarToggleButton.isSelected() ? "ON" : "OFF");
/*  937 */       this.TopToolBarToggleButton.setActionCommand("47");
/*  938 */       this.TopToolBarToggleButton.addActionListener(this);
/*      */ 
/*  940 */       this.SideToolBarToggleButton.setText(this.SideToolBarToggleButton.isSelected() ? "ON" : "OFF");
/*  941 */       this.SideToolBarToggleButton.setActionCommand("48");
/*  942 */       this.SideToolBarToggleButton.addActionListener(this);
/*      */ 
/*  944 */       this.BottomToolBarToggleButton.setText(this.BottomToolBarToggleButton.isSelected() ? "ON" : "OFF");
/*  945 */       this.BottomToolBarToggleButton.setActionCommand("49");
/*  946 */       this.BottomToolBarToggleButton.addActionListener(this);
/*      */ 
/*  948 */       this.SelectConfigFileButton.setText("Select Config File");
/*  949 */       this.SelectConfigFileButton.setActionCommand("42");
/*  950 */       this.SelectConfigFileButton.addActionListener(this);
/*      */ 
/*  953 */       GroupLayout ToolBarsPanelLayout = new GroupLayout(this.ToolBarsPanel);
/*  954 */       this.ToolBarsPanel.setLayout(ToolBarsPanelLayout);
/*  955 */       ToolBarsPanelLayout.setHorizontalGroup(ToolBarsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ToolBarsPanelLayout.createSequentialGroup().addContainerGap().addGroup(ToolBarsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ToolBarsPanelLayout.createSequentialGroup().addComponent(this.ConfigFileLabel, -1, 114, 32767).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.SelectConfigFileButton, -2, 130, -2)).addComponent(this.BottomToolBarLabel, -1, 248, 32767).addGroup(ToolBarsPanelLayout.createSequentialGroup().addGap(70, 70, 70).addComponent(this.BottomToolBarToggleButton, -2, 110, -2)).addComponent(this.TopToolBarLabel, -1, 248, 32767).addComponent(this.SideToolBarLabel, -1, 248, 32767).addGroup(ToolBarsPanelLayout.createSequentialGroup().addGap(70, 70, 70).addComponent(this.TopToolBarToggleButton, -2, 110, -2)).addGroup(ToolBarsPanelLayout.createSequentialGroup().addGap(70, 70, 70).addComponent(this.SideToolBarToggleButton, -2, 110, -2)).addComponent(this.ToolBarsPanelSeparator, -1, 248, 32767)).addContainerGap()));
/*      */ 
/*  979 */       ToolBarsPanelLayout.setVerticalGroup(ToolBarsPanelLayout.createParallelGroup(GroupLayout.Alignment.CENTER).addGroup(GroupLayout.Alignment.TRAILING, ToolBarsPanelLayout.createSequentialGroup().addGap(28, 28, 28).addComponent(this.TopToolBarLabel).addGap(18, 18, 18).addComponent(this.TopToolBarToggleButton).addGap(18, 18, 18).addComponent(this.SideToolBarLabel).addGap(18, 18, 18).addComponent(this.SideToolBarToggleButton).addGap(18, 18, 18).addComponent(this.ToolBarsPanelSeparator, -2, 10, -2).addGap(18, 18, 18).addComponent(this.BottomToolBarLabel).addGap(18, 18, 18).addComponent(this.BottomToolBarToggleButton).addGap(18, 18, 18).addGroup(ToolBarsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.ConfigFileLabel).addComponent(this.SelectConfigFileButton)).addContainerGap()));
/*      */ 
/* 1003 */       this.ScriptsPanel.setPreferredSize(new Dimension(268, 322));
/* 1004 */       this.ScriptsPanel.setMaximumSize(new Dimension(268, 322));
/*      */ 
/* 1006 */       this.SelectedScriptsList.setModel(this.loadedFilesModel);
/* 1007 */       updateLoadedScripts();
/* 1008 */       this.jScrollPane1.setViewportView(this.SelectedScriptsList);
/*      */ 
/* 1010 */       this.SelectFilesButton.setText("Select Files");
/* 1011 */       this.SelectFilesButton.setActionCommand("43");
/* 1012 */       this.SelectFilesButton.addActionListener(this);
/*      */ 
/* 1014 */       this.SetScriptDirectoryLabel.setText("Set Script Directory:");
/*      */ 
/* 1016 */       this.SelectScriptDirectoryButton.setText("Select Directory");
/* 1017 */       this.SelectScriptDirectoryButton.setActionCommand("44");
/* 1018 */       this.SelectScriptDirectoryButton.addActionListener(this);
/*      */ 
/* 1020 */       this.SetLibraryDirectoryLabel.setText("Set Library Directory:");
/*      */ 
/* 1022 */       this.SelectLibraryDirectoryButton.setText("Select Directory");
/* 1023 */       this.SelectLibraryDirectoryButton.setActionCommand("50");
/* 1024 */       this.SelectLibraryDirectoryButton.addActionListener(this);
/*      */ 
/* 1026 */       this.SelectedScriptsLabel.setText("Selected Scripts (Not Including Above Directory)");
/*      */ 
/* 1028 */       GroupLayout ScriptsPanelLayout = new GroupLayout(this.ScriptsPanel);
/* 1029 */       this.ScriptsPanel.setLayout(ScriptsPanelLayout);
/* 1030 */       ScriptsPanelLayout.setHorizontalGroup(ScriptsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ScriptsPanelLayout.createSequentialGroup().addContainerGap().addGroup(ScriptsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ScriptsPanelLayout.createSequentialGroup().addGroup(ScriptsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ScriptsPanelLayout.createSequentialGroup().addComponent(this.SetScriptDirectoryLabel, 110, 110, 110).addGap(8, 8, 8).addComponent(this.SelectScriptDirectoryButton, 120, 120, 32767)).addComponent(this.ScriptDirectoryLabel, 230, 230, 230)).addContainerGap()).addGroup(ScriptsPanelLayout.createSequentialGroup().addGroup(ScriptsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ScriptsPanelLayout.createSequentialGroup().addComponent(this.SetLibraryDirectoryLabel, 110, 110, 110).addGap(8, 8, 8).addComponent(this.SelectLibraryDirectoryButton, 120, 120, 32767)).addComponent(this.LibraryDirectoryLabel, 230, 230, 230)).addContainerGap()).addGroup(GroupLayout.Alignment.TRAILING, ScriptsPanelLayout.createSequentialGroup().addComponent(this.SelectFilesButton, -2, 120, -2).addContainerGap()).addGroup(GroupLayout.Alignment.TRAILING, ScriptsPanelLayout.createSequentialGroup().addComponent(this.jScrollPane1, -1, 248, 32767).addContainerGap()).addGroup(ScriptsPanelLayout.createSequentialGroup().addComponent(this.SelectedScriptsLabel, -1, 248, 32767).addContainerGap()).addComponent(this.ScriptsPanelSeparator, GroupLayout.Alignment.TRAILING, -1, 268, 32767)).addContainerGap()));
/*      */ 
/* 1063 */       ScriptsPanelLayout.setVerticalGroup(ScriptsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ScriptsPanelLayout.createSequentialGroup().addContainerGap().addGroup(ScriptsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.SetScriptDirectoryLabel).addComponent(this.SelectScriptDirectoryButton)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.ScriptDirectoryLabel).addGroup(ScriptsPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.SetLibraryDirectoryLabel).addComponent(this.SelectLibraryDirectoryButton)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.LibraryDirectoryLabel).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.ScriptsPanelSeparator, -2, 10, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.SelectedScriptsLabel).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.jScrollPane1, -2, -1, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.SelectFilesButton).addContainerGap()));
/*      */ 
/* 1089 */       this.CardsPanel = new JPanel(new CardLayout());
/* 1090 */       this.CardsPanel.setMaximumSize(new Dimension(268, 322));
/*      */ 
/* 1092 */       this.CardsPanel.add(this.NamePropertiesPanel, "NameProperties");
/* 1093 */       this.CardsPanel.add(this.SerialPortSettingsPanel, "SerialPortSettings");
/* 1094 */       this.CardsPanel.add(this.SSHPortSettingsPanel, "SSHPortSettings");
/* 1095 */       this.CardsPanel.add(this.FontsAndColorsPanel, "FontsAndColors");
/* 1096 */       this.CardsPanel.add(this.ScriptsPanel, "Scripts");
/* 1097 */       this.CardsPanel.add(this.ToolBarsPanel, "ToolBars");
/*      */ 
/* 1099 */       GroupLayout ConnectionsTabLayout = new GroupLayout(this.ConnectionsTab);
/* 1100 */       this.ConnectionsTab.setLayout(ConnectionsTabLayout);
/* 1101 */       ConnectionsTabLayout.setHorizontalGroup(ConnectionsTabLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(ConnectionsTabLayout.createSequentialGroup().addComponent(this.ConnectionDirectoryPanel, -1, 200, 32767).addComponent(this.CardsPanel, -2, 160, 32767)));
/*      */ 
/* 1112 */       ConnectionsTabLayout.setVerticalGroup(ConnectionsTabLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.ConnectionDirectoryPanel, -2, -1, -2).addComponent(this.CardsPanel, -2, 322, 32767));
/*      */ 
/* 1122 */       this.TabbedOptions.addTab("Connection Directory", this.ConnectionsTab);
/*      */ 
/* 1124 */       GroupLayout layout = new GroupLayout(getContentPane());
/* 1125 */       getContentPane().setLayout(layout);
/* 1126 */       layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.TabbedOptions, -1, 596, 32767));
/*      */ 
/* 1130 */       layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.TabbedOptions, -2, 350, 32767));
/*      */ 
/* 1165 */       valueChanged(null);
/*      */     }
/*      */     catch (Exception e)
/*      */     {
/* 1169 */       e.printStackTrace();
/*      */     }
/*      */   }
/*      */ 
/*      */   private void initHelpTab()
/*      */   {
/* 1177 */     this.AdvancedOptionsPanel = new JPanel();
/* 1178 */     this.jPanel1 = new JPanel();
/* 1179 */     this.jScrollPane1 = new JScrollPane();
/* 1180 */     this.FileLocationsTextArea = new JTextArea();
/* 1181 */     this.FileLocationsLabel = new JLabel();
/* 1182 */     this.jScrollPane2 = new JScrollPane();
/* 1183 */     this.CVCTextArea = new JTextArea();
/* 1184 */     this.CVCLabel = new JLabel();
/* 1185 */     this.ScriptWithLibrariesLabel = new JLabel();
/* 1186 */     this.jScrollPane3 = new JScrollPane();
/* 1187 */     this.ScriptWithLibrariesTextArea = new JTextArea();
/* 1188 */     this.jScrollPane4 = new JScrollPane();
/* 1189 */     this.ScriptsWithoutLibrariesTextArea = new JTextArea();
/* 1190 */     this.ScriptWithoutLibrariesLabel = new JLabel();
/* 1191 */     this.FutherAssistanceLabel = new JLabel();
/*      */ 
/* 1193 */     GroupLayout AdvancedOptionsPanelLayout = new GroupLayout(this.AdvancedOptionsPanel);
/* 1194 */     this.AdvancedOptionsPanel.setLayout(AdvancedOptionsPanelLayout);
/* 1195 */     AdvancedOptionsPanelLayout.setHorizontalGroup(AdvancedOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 268, 32767));
/*      */ 
/* 1199 */     AdvancedOptionsPanelLayout.setVerticalGroup(AdvancedOptionsPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addGap(0, 280, 32767));
/*      */ 
/* 1204 */     setDefaultCloseOperation(3);
/* 1205 */     setTitle("Options");
/* 1206 */     setResizable(false);
/*      */ 
/* 1208 */     this.TabbedOptions.setOpaque(true);
/*      */ 
/* 1210 */     this.jScrollPane1.setHorizontalScrollBarPolicy(31);
/* 1211 */     this.jScrollPane1.setVerticalScrollBarPolicy(21);
/*      */ 
/* 1213 */     this.FileLocationsTextArea.setColumns(20);
/* 1214 */     this.FileLocationsTextArea.setFont(new Font("Arial", 0, 13));
/* 1215 */     this.FileLocationsTextArea.setRows(5);
/* 1216 */     this.FileLocationsTextArea.setText("Log files:\n  [Hazell]\\Logs\\*.txt\nOptions:\n  [Hazell]\\Options\\*.txt\nSource Code:\n  [Hazell]\\*.java\nJava 1.6 JRE:\n  [Hazell]\\JRE\\jre.exe");
/* 1217 */     this.FileLocationsTextArea.setBorder(BorderFactory.createEtchedBorder());
/* 1218 */     this.jScrollPane1.setViewportView(this.FileLocationsTextArea);
/*      */ 
/* 1220 */     this.FileLocationsLabel.setFont(new Font("Arial", 0, 13));
/* 1221 */     this.FileLocationsLabel.setText("Default File Locations");
/* 1222 */     this.FileLocationsLabel.setBorder(BorderFactory.createEtchedBorder(0));
/*      */ 
/* 1224 */     this.jScrollPane2.setHorizontalScrollBarPolicy(31);
/* 1225 */     this.jScrollPane2.setVerticalScrollBarPolicy(21);
/*      */ 
/* 1227 */     this.CVCTextArea.setColumns(20);
/* 1228 */     this.CVCTextArea.setFont(new Font("Arial", 0, 13));
/* 1229 */     this.CVCTextArea.setRows(5);
/* 1230 */     this.CVCTextArea.setText("The console box only \nshows what is read \nover the specific port.\n\nThe command box is \na text area that upon \npressing enter, the \ncontained text is \ntransmitted.");
/* 1231 */     this.CVCTextArea.setBorder(BorderFactory.createEtchedBorder());
/* 1232 */     this.jScrollPane2.setViewportView(this.CVCTextArea);
/*      */ 
/* 1234 */     this.CVCLabel.setFont(new Font("Arial", 0, 13));
/* 1235 */     this.CVCLabel.setText("Console vs Command");
/* 1236 */     this.CVCLabel.setBorder(BorderFactory.createEtchedBorder(0));
/*      */ 
/* 1238 */     this.ScriptWithLibrariesLabel.setFont(new Font("Arial", 0, 13));
/* 1239 */     this.ScriptWithLibrariesLabel.setText("Necessary Script Code If Using The Acompanying Libraries");
/* 1240 */     this.ScriptWithLibrariesLabel.setBorder(BorderFactory.createEtchedBorder(0));
/*      */ 
/* 1242 */     this.jScrollPane3.setHorizontalScrollBarPolicy(31);
/* 1243 */     this.jScrollPane3.setVerticalScrollBarPolicy(21);
/*      */ 
/* 1245 */     this.ScriptWithLibrariesTextArea.setColumns(20);
/* 1246 */     this.ScriptWithLibrariesTextArea.setFont(new Font("Arial", 0, 13));
/* 1247 */     this.ScriptWithLibrariesTextArea.setRows(5);
/* 1248 */     this.ScriptWithLibrariesTextArea.setText("Script              #***This line is only for use in the Command Box***\nfrom Library import *                                                      # Imports Libraries used by the script.\nclass main():                          # Initializes the class name for the script !!!Do Not Change \"main\"!!!\n   def __init__(self, parent):          # Initializes the method call after calling main !!!Do Not Change!!!\n      setMain(parent.get(parent.keySet().toArray()[0]), \"CTU4\")        # Necessary for using Libraries");
/* 1249 */     this.ScriptWithLibrariesTextArea.setBorder(BorderFactory.createEtchedBorder());
/* 1250 */     this.jScrollPane3.setViewportView(this.ScriptWithLibrariesTextArea);
/*      */ 
/* 1252 */     this.jScrollPane4.setHorizontalScrollBarPolicy(31);
/* 1253 */     this.jScrollPane4.setVerticalScrollBarPolicy(21);
/*      */ 
/* 1255 */     this.ScriptsWithoutLibrariesTextArea.setColumns(20);
/* 1256 */     this.ScriptsWithoutLibrariesTextArea.setFont(new Font("Arial", 0, 13));
/* 1257 */     this.ScriptsWithoutLibrariesTextArea.setRows(5);
/* 1258 */     this.ScriptsWithoutLibrariesTextArea.setText("Script  #***This line is only for use in the Command Box***\nclass main():\n   def __init___(self, parent):\n      parent.***function call***(*parameters*)\n      e.g.\n      parent.transmit(\"exit\")\n      parent.waitfor(\"->\", 1000)\n**See Hazell JavaDocsfor more information\n**on available LibraryMethods.java functions.");
/* 1259 */     this.ScriptsWithoutLibrariesTextArea.setBorder(BorderFactory.createEtchedBorder());
/* 1260 */     this.jScrollPane4.setViewportView(this.ScriptsWithoutLibrariesTextArea);
/*      */ 
/* 1262 */     this.ScriptWithoutLibrariesLabel.setFont(new Font("Arial", 0, 13));
/* 1263 */     this.ScriptWithoutLibrariesLabel.setText("How To Write Scripts Without Libraries");
/* 1264 */     this.ScriptWithoutLibrariesLabel.setBorder(BorderFactory.createEtchedBorder(0));
/*      */ 
/* 1266 */     this.FutherAssistanceLabel.setFont(new Font("Arial Black", 0, 11));
/* 1267 */     this.FutherAssistanceLabel.setHorizontalAlignment(11);
/* 1268 */     this.FutherAssistanceLabel.setText("Contact Alex Ramsey for further assistance: ramsey.alexb@gmail.com");
/*      */ 
/* 1270 */     GroupLayout jPanel1Layout = new GroupLayout(this.jPanel1);
/* 1271 */     this.jPanel1.setLayout(jPanel1Layout);
/* 1272 */     jPanel1Layout.setHorizontalGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.jScrollPane3, GroupLayout.Alignment.LEADING, -1, 571, 32767).addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.jScrollPane4, -1, 279, 32767).addComponent(this.ScriptWithoutLibrariesLabel, -1, 279, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.CVCLabel, -1, 132, 32767).addComponent(this.jScrollPane2, -1, 132, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED).addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.TRAILING).addComponent(this.FileLocationsLabel, -1, 140, 32767).addComponent(this.jScrollPane1, GroupLayout.Alignment.LEADING, -1, 140, 32767))).addComponent(this.FutherAssistanceLabel, -2, 458, -2).addComponent(this.ScriptWithLibrariesLabel, GroupLayout.Alignment.LEADING, -1, 571, 32767)).addContainerGap()));
/*      */ 
/* 1294 */     jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING).addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(this.ScriptWithLibrariesLabel).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addComponent(this.jScrollPane3, -2, 86, -2).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.BASELINE).addComponent(this.FileLocationsLabel).addComponent(this.CVCLabel).addComponent(this.ScriptWithoutLibrariesLabel)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED).addGroup(jPanel1Layout.createParallelGroup(GroupLayout.Alignment.LEADING, false).addComponent(this.jScrollPane1).addComponent(this.jScrollPane2).addComponent(this.jScrollPane4, -1, 142, 32767)).addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, -1, 32767).addComponent(this.FutherAssistanceLabel).addContainerGap()));
/*      */ 
/* 1316 */     GroupLayout HelpAndSupportTabLayout = new GroupLayout(this.HelpAndSupportTab);
/* 1317 */     this.HelpAndSupportTab.setLayout(HelpAndSupportTabLayout);
/* 1318 */     HelpAndSupportTabLayout.setHorizontalGroup(HelpAndSupportTabLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.jPanel1, -1, -1, 32767));
/*      */ 
/* 1322 */     HelpAndSupportTabLayout.setVerticalGroup(HelpAndSupportTabLayout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.jPanel1, -1, -1, 32767));
/*      */ 
/* 1327 */     GroupLayout layout = new GroupLayout(getContentPane());
/* 1328 */     getContentPane().setLayout(layout);
/* 1329 */     layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.TabbedOptions, -1, 596, 32767));
/*      */ 
/* 1333 */     layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.TabbedOptions, -2, 350, -2));
/*      */ 
/* 1338 */     this.TabbedOptions.addTab("Help and Support", this.HelpAndSupportTab);
/*      */   }
/*      */ 
/*      */   private void initComponents()
/*      */   {
/* 1347 */     this.TabbedOptions = new JTabbedPane();
/* 1348 */     this.WindowTab = new JPanel();
/* 1349 */     this.ConnectionsTab = new JPanel();
/* 1350 */     this.HelpAndSupportTab = new JPanel();
/*      */ 
/* 1352 */     setFrameIcon(this.TLGUI.titleBarIcon);
/*      */ 
/* 1354 */     setBackground(TopLevelGUI.windowBackground);
/* 1355 */     setForeground(TopLevelGUI.windowText);
/* 1356 */     setResizable(false);
/*      */ 
/* 1358 */     this.TabbedOptions.setBackground(new Color(0, 102, 204));
/* 1359 */     this.TabbedOptions.setOpaque(true);
/*      */ 
/* 1361 */     initWindowTab();
/* 1362 */     initConnectionsTab();
/* 1363 */     initHelpTab();
/*      */ 
/* 1365 */     setDefaultCloseOperation(2);
/*      */ 
/* 1367 */     GroupLayout layout = new GroupLayout(getContentPane());
/* 1368 */     getContentPane().setLayout(layout);
/* 1369 */     layout.setHorizontalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.TabbedOptions));
/*      */ 
/* 1373 */     layout.setVerticalGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING).addComponent(this.TabbedOptions, -2, 350, 32767));
/*      */ 
/* 1378 */     updateColorScheme();
/*      */ 
/* 1380 */     pack();
/*      */   }
/*      */ 
/*      */   public void initBaudrateModel()
/*      */   {
/* 1387 */     this.baudrateModel.removeAllElements();
/* 1388 */     this.baudrateModel.addElement(Integer.valueOf(75));
/* 1389 */     this.baudrateModel.addElement(Integer.valueOf(110));
/* 1390 */     this.baudrateModel.addElement(Integer.valueOf(134));
/* 1391 */     this.baudrateModel.addElement(Integer.valueOf(150));
/* 1392 */     this.baudrateModel.addElement(Integer.valueOf(300));
/* 1393 */     this.baudrateModel.addElement(Integer.valueOf(600));
/* 1394 */     this.baudrateModel.addElement(Integer.valueOf(1200));
/* 1395 */     this.baudrateModel.addElement(Integer.valueOf(1800));
/* 1396 */     this.baudrateModel.addElement(Integer.valueOf(2400));
/* 1397 */     this.baudrateModel.addElement(Integer.valueOf(4800));
/* 1398 */     this.baudrateModel.addElement(Integer.valueOf(5600));
/* 1399 */     this.baudrateModel.addElement(Integer.valueOf(7200));
/* 1400 */     this.baudrateModel.addElement(Integer.valueOf(9600));
/* 1401 */     this.baudrateModel.addElement(Integer.valueOf(14400));
/* 1402 */     this.baudrateModel.addElement(Integer.valueOf(19200));
/* 1403 */     this.baudrateModel.addElement(Integer.valueOf(28800));
/* 1404 */     this.baudrateModel.addElement(Integer.valueOf(38400));
/* 1405 */     this.baudrateModel.addElement(Integer.valueOf(57600));
/* 1406 */     this.baudrateModel.addElement(Integer.valueOf(115200));
/* 1407 */     this.baudrateModel.addElement(Integer.valueOf(128000));
/*      */   }
/*      */ 
/*      */   public void valueChanged(ListSelectionEvent listSelectionEvent)
/*      */   {
/*      */     try
/*      */     {
/* 1421 */       this.LogSelectDirectoryButton.setEnabled(true);
/* 1422 */       this.SelectLibraryDirectoryButton.setEnabled(true);
/* 1423 */       this.LogBaseNameTextField.setEnabled(true);
/* 1424 */       this.LogDirectoryLabel.setEnabled(true);
/* 1425 */       this.LogOutputTypeCheckBox.setEnabled(true);
/* 1426 */       this.ShellTypeTextField.setEnabled(true);
/* 1427 */       this.SSHPortEntryBox.setEnabled(true);
/* 1428 */       this.UserNameTextField.setEnabled(true);
/* 1429 */       this.PasswordTextField.setEnabled(true);
/* 1430 */       this.PortNameTextField.setEnabled(true);
/* 1431 */       this.SerialPortComboBox.setEnabled(true);
/* 1432 */       this.SerialPortEntryBox.setEnabled(true);
/* 1433 */       this.BaudRateComboBox.setEnabled(true);
/* 1434 */       this.ParityComboBox.setEnabled(true);
/* 1435 */       this.DataBitsComboBox.setEnabled(true);
/* 1436 */       this.StopBitsComboBox.setEnabled(true);
/* 1437 */       this.ManualEntryButton.setEnabled(true);
/* 1438 */       this.ConsoleBoxBackgroundColorComboBox.setEnabled(true);
/* 1439 */       this.ConsoleBoxTextEditorComboBox.setEnabled(true);
/* 1440 */       this.ConsoleBoxTextFontComboBox.setEnabled(true);
/* 1441 */       this.SameAsCheckBox.setEnabled(true);
/* 1442 */       this.CommandBoxBackgroundColorComboBox.setEnabled(true);
/* 1443 */       this.CommandBoxTextColorComboBox.setEnabled(true);
/* 1444 */       this.CommandBoxTextFontComboBox.setEnabled(true);
/* 1445 */       this.SelectScriptDirectoryButton.setEnabled(true);
/* 1446 */       this.SelectedScriptsList.setEnabled(true);
/* 1447 */       this.SelectFilesButton.setEnabled(true);
/* 1448 */       this.ScriptDirectoryLabel.setEnabled(true);
/* 1449 */       this.TopToolBarToggleButton.setEnabled(true);
/* 1450 */       this.TopToolBarToggleButton.setEnabled(true);
/* 1451 */       this.SideToolBarToggleButton.setEnabled(true);
/* 1452 */       this.SideToolBarToggleButton.setEnabled(true);
/* 1453 */       this.BottomToolBarToggleButton.setEnabled(true);
/* 1454 */       this.BottomToolBarToggleButton.setEnabled(true);
/* 1455 */       this.ConfigFileLabel.setEnabled(true);
/* 1456 */       this.SerialPortToggleButton.setSelected(true);
/* 1457 */       this.SSHPortToggleButton.setSelected(true);
/* 1458 */       this.SerialPortToggleButton.setEnabled(true);
/* 1459 */       this.SSHPortToggleButton.setEnabled(true);
/* 1460 */       this.SelectConfigFileButton.setEnabled(true);
/* 1461 */       this.SaveConnectionButton.setEnabled(true);
/* 1462 */       this.DeleteConnectionButton.setEnabled(true);
/* 1463 */       this.PortNameTextField.setText((String)this.ConnectionDirectoryList.getSelectedValue());
/* 1464 */       this.SerialPortToggleButton.setSelected(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[18].equals("Serial"));
/* 1465 */       this.SSHPortToggleButton.setSelected(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[18].equals("SSH"));
/* 1466 */       if (this.SerialPortToggleButton.isSelected())
/*      */       {
/* 1468 */         if (this.CardsPanel.getComponent(2).isVisible())
/* 1469 */           ((CardLayout)this.CardsPanel.getLayout()).show(this.CardsPanel, "SerialPortSettings");
/* 1470 */         this.portListingModel.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[1]);
/* 1471 */         this.SerialPortEntryBox.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[1]);
/* 1472 */         this.baudrateModel.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[2]);
/* 1473 */         this.parityModel.setSelectedItem(this.parityModel.getElementAt(Integer.parseInt(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[5])));
/* 1474 */         this.databitsModel.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[4]);
/* 1475 */         this.stopbitsModel.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[3]);
/*      */       }
/*      */       else
/*      */       {
/* 1480 */         if (this.CardsPanel.getComponent(1).isVisible())
/* 1481 */           ((CardLayout)this.CardsPanel.getLayout()).show(this.CardsPanel, "SSHPortSettings");
/* 1482 */         this.SSHPortEntryBox.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[1]);
/* 1483 */         this.UserNameTextField.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[2]);
/* 1484 */         this.PasswordTextField.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[3]);
/* 1485 */         this.ShellTypeTextField.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[4]);
/*      */       }
/* 1487 */       this.ConsoleBoxBackgroundColorComboBox.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[6]);
/* 1488 */       this.ConsoleBoxTextEditorComboBox.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[7]);
/* 1489 */       this.ConsoleBoxTextFontComboBox.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[8]);
/* 1490 */       this.CommandBoxBackgroundColorComboBox.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[9]);
/* 1491 */       this.CommandBoxTextColorComboBox.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[10]);
/* 1492 */       this.CommandBoxTextFontComboBox.setSelectedItem(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[11]);
/* 1493 */       if ((this.ConsoleBoxBackgroundColorComboBox.getSelectedItem().toString().equals(this.CommandBoxBackgroundColorComboBox.getSelectedItem().toString())) && (this.ConsoleBoxTextEditorComboBox.getSelectedItem().toString().equals(this.CommandBoxTextColorComboBox.getSelectedItem().toString())) && (this.ConsoleBoxTextFontComboBox.getSelectedItem().toString().equals(this.CommandBoxTextFontComboBox.getSelectedItem().toString())))
/*      */       {
/* 1497 */         this.SameAsCheckBox.doClick();
/*      */       }
/*      */       else
/*      */       {
/* 1501 */         this.SameAsCheckBox.doClick();
/*      */       }
/* 1503 */       this.ScriptDirectoryLabel.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[12]);
/* 1504 */       this.LibraryDirectoryLabel.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[13]);
/* 1505 */       this.TopToolBarToggleButton.setSelected(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[14].equals("true"));
/* 1506 */       this.TopToolBarToggleButton.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[14].equals("true") ? "ON" : "OFF");
/* 1507 */       this.SideToolBarToggleButton.setSelected(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[15].equals("true"));
/* 1508 */       this.SideToolBarToggleButton.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[15].equals("true") ? "ON" : "OFF");
/* 1509 */       this.BottomToolBarToggleButton.setSelected(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[16].equals("true"));
/* 1510 */       this.BottomToolBarToggleButton.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[16].equals("true") ? "ON" : "OFF");
/* 1511 */       this.ButtonConfigFile = new File(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[17]);
/* 1512 */       this.ConfigFileLabel.setText(this.ButtonConfigFile.getName());
/* 1513 */       this.LogBaseNameTextField.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[19]);
/* 1514 */       this.LogDirectoryLabel.setText(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[20]);
/* 1515 */       this.LogOutputTypeCheckBox.setSelected(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[21].equals("true"));
/*      */ 
/* 1517 */       updateLoadedScripts();
/*      */     }
/*      */     catch (Exception e)
/*      */     {
/* 1523 */       this.LogSelectDirectoryButton.setEnabled(false);
/* 1524 */       this.SelectLibraryDirectoryButton.setEnabled(false);
/* 1525 */       this.LogBaseNameTextField.setEnabled(false);
/* 1526 */       this.LogDirectoryLabel.setEnabled(false);
/* 1527 */       this.LogOutputTypeCheckBox.setEnabled(false);
/* 1528 */       this.ShellTypeTextField.setEnabled(false);
/* 1529 */       this.SSHPortEntryBox.setEnabled(false);
/* 1530 */       this.UserNameTextField.setEnabled(false);
/* 1531 */       this.PasswordTextField.setEnabled(false);
/* 1532 */       this.PortNameTextField.setEnabled(false);
/* 1533 */       this.SerialPortComboBox.setEnabled(false);
/* 1534 */       this.SerialPortEntryBox.setEnabled(false);
/* 1535 */       this.BaudRateComboBox.setEnabled(false);
/* 1536 */       this.ParityComboBox.setEnabled(false);
/* 1537 */       this.DataBitsComboBox.setEnabled(false);
/* 1538 */       this.StopBitsComboBox.setEnabled(false);
/* 1539 */       this.ManualEntryButton.setEnabled(false);
/* 1540 */       this.ConsoleBoxBackgroundColorComboBox.setEnabled(false);
/* 1541 */       this.ConsoleBoxTextEditorComboBox.setEnabled(false);
/* 1542 */       this.ConsoleBoxTextFontComboBox.setEnabled(false);
/* 1543 */       this.SameAsCheckBox.setEnabled(false);
/* 1544 */       this.CommandBoxBackgroundColorComboBox.setEnabled(false);
/* 1545 */       this.CommandBoxTextColorComboBox.setEnabled(false);
/* 1546 */       this.CommandBoxTextFontComboBox.setEnabled(false);
/* 1547 */       this.SelectScriptDirectoryButton.setEnabled(false);
/* 1548 */       this.SelectedScriptsList.setEnabled(false);
/* 1549 */       this.SelectFilesButton.setEnabled(false);
/* 1550 */       this.ScriptDirectoryLabel.setEnabled(false);
/* 1551 */       this.TopToolBarToggleButton.setEnabled(false);
/* 1552 */       this.TopToolBarToggleButton.setEnabled(false);
/* 1553 */       this.SideToolBarToggleButton.setEnabled(false);
/* 1554 */       this.SideToolBarToggleButton.setEnabled(false);
/* 1555 */       this.BottomToolBarToggleButton.setEnabled(false);
/* 1556 */       this.BottomToolBarToggleButton.setEnabled(false);
/* 1557 */       this.ConfigFileLabel.setEnabled(false);
/* 1558 */       this.SerialPortToggleButton.setSelected(false);
/* 1559 */       this.SSHPortToggleButton.setSelected(false);
/* 1560 */       this.SerialPortToggleButton.setEnabled(false);
/* 1561 */       this.SSHPortToggleButton.setEnabled(false);
/* 1562 */       this.SelectConfigFileButton.setEnabled(false);
/* 1563 */       this.SaveConnectionButton.setEnabled(false);
/* 1564 */       this.DeleteConnectionButton.setEnabled(false);
/*      */     }
/*      */   }
/*      */ 
/*      */   public void actionPerformed(ActionEvent evt)
/*      */   {
/*      */     try
/*      */     {
/* 1578 */       switch (Integer.parseInt(evt.getActionCommand()))
/*      */       {
/*      */       case 0:
/* 1581 */         return;
/*      */       case 20:
/* 1582 */         this.cl = ((CardLayout)(CardLayout)this.CardsPanel.getLayout());
/* 1583 */         this.cl.show(this.CardsPanel, "NameProperties");
/* 1584 */         return;
/*      */       case 21:
/* 1585 */         this.cl = ((CardLayout)(CardLayout)this.CardsPanel.getLayout());
/* 1586 */         this.cl.show(this.CardsPanel, "FontsAndColors");
/* 1587 */         return;
/*      */       case 22:
/* 1588 */         this.cl = ((CardLayout)(CardLayout)this.CardsPanel.getLayout());
/* 1589 */         this.cl.show(this.CardsPanel, "Scripts");
/* 1590 */         return;
/*      */       case 23:
/* 1591 */         this.cl = ((CardLayout)(CardLayout)this.CardsPanel.getLayout());
/* 1592 */         if (this.SerialPortToggleButton.isSelected())
/* 1593 */           this.cl.show(this.CardsPanel, "SerialPortSettings");
/*      */         else
/* 1595 */           this.cl.show(this.CardsPanel, "SSHPortSettings");
/* 1596 */         return;
/*      */       case 24:
/* 1597 */         saveConnectionSettings();
/* 1598 */         return;
/*      */       case 25:
/* 1599 */         this.cl = ((CardLayout)(CardLayout)this.CardsPanel.getLayout());
/* 1600 */         this.cl.show(this.CardsPanel, "ToolBars");
/* 1601 */         return;
/*      */       case 26:
/* 1602 */         String connectionName = JOptionPane.showInternalInputDialog(this.CreateNewConnectionButton, "Please Enter Your Desired Connection Name:");
/* 1603 */         String[] tempConn = { connectionName, "COM1", "9600", "1", "8", "0", "BLUE", "WHITE", "Lucida Console", "BLUE", "WHITE", "Lucida Console", "./Scripts/", "./Library/", "true", "true", "true", "./Options/Sample.txt", "Serial", "Data_Log_", "./Logs/", "false", "0" };
/*      */ 
/* 1626 */         TopLevelGUI.ConnectionDirectory.put(tempConn[0], tempConn);
/* 1627 */         this.TLGUI.updateConnectionDirectory();
/* 1628 */         updateConnectionDirectory();
/* 1629 */         return;
/*      */       case 27:
/* 1630 */         TopLevelGUI.ConnectionDirectory.remove((String)this.ConnectionDirectoryList.getSelectedValue());
/* 1631 */         updateConnectionDirectory();
/* 1632 */         return;
/*      */       case 28:
/* 1633 */         this.CommandBoxBackgroundColorComboBox.setEnabled(!this.SameAsCheckBox.isSelected());
/* 1634 */         this.CommandBoxTextColorComboBox.setEnabled(!this.SameAsCheckBox.isSelected());
/* 1635 */         this.CommandBoxTextFontComboBox.setEnabled(!this.SameAsCheckBox.isSelected());
/* 1636 */         return;
/*      */       case 29:
/* 1637 */         JFileChooser fc5 = new JFileChooser();
/* 1638 */         fc5.setFileSelectionMode(1);
/* 1639 */         fc5.setCurrentDirectory(new File(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[20]));
/* 1640 */         int returnVal5 = fc5.showOpenDialog(this.SelectConfigFileButton);
/*      */ 
/* 1642 */         if (returnVal5 == 0)
/*      */         {
/* 1644 */           File temp = fc5.getSelectedFile();
/* 1645 */           this.LogDirectoryLabel.setText(temp.getAbsolutePath());
/*      */         }
/* 1647 */         return;
/*      */       case 30:
/* 1648 */         if (this.ColorSchemeComboBox.getSelectedItem().toString().equals("Default"))
/* 1649 */           this.TLGUI.setDefaultColorScheme();
/* 1650 */         if (this.ColorSchemeComboBox.getSelectedItem().toString().equals("Red"))
/* 1651 */           this.TLGUI.setRedColorScheme();
/* 1652 */         if (this.ColorSchemeComboBox.getSelectedItem().toString().equals("Green"))
/* 1653 */           this.TLGUI.setGreenColorScheme();
/* 1654 */         if (this.ColorSchemeComboBox.getSelectedItem().toString().equals("Blue"))
/* 1655 */           this.TLGUI.setBlueColorScheme();
/* 1656 */         return;
/*      */       case 31:
/* 1657 */         if (this.LookAndFeelComboBox.getSelectedItem().toString().equals("System UI"))
/* 1658 */           this.TLGUI.setSystemUI();
/* 1659 */         if (this.LookAndFeelComboBox.getSelectedItem().toString().equals("Metal UI"))
/* 1660 */           this.TLGUI.setMetalUI();
/* 1661 */         if (this.ColorSchemeComboBox.getSelectedItem().toString().equals("Default"))
/* 1662 */           this.TLGUI.setDefaultColorScheme();
/*      */         else
/* 1664 */           this.TLGUI.updateColorScheme();
/* 1665 */         return;
/*      */       case 32:
/* 1666 */         Color bgColor = JColorChooser.showDialog(this, "Choose Background Color", TopLevelGUI.windowBackground);
/* 1667 */         TopLevelGUI.windowBackground = bgColor;
/* 1668 */         this.TLGUI.updateColorScheme();
/* 1669 */         return;
/*      */       case 33:
/* 1670 */         Color tColor = JColorChooser.showDialog(this, "Choose Text Color", TopLevelGUI.windowText);
/* 1671 */         TopLevelGUI.windowText = tColor;
/* 1672 */         this.TLGUI.updateColorScheme();
/* 1673 */         return;
/*      */       case 34:
/* 1674 */         Color mColor = JColorChooser.showDialog(this, "Choose Menu Color", TopLevelGUI.menuBackground);
/* 1675 */         TopLevelGUI.menuBackground = mColor;
/* 1676 */         this.TLGUI.updateColorScheme();
/* 1677 */         return;
/*      */       case 35:
/* 1678 */         Color mtColor = JColorChooser.showDialog(this, "Choose Menu Text Color", TopLevelGUI.menuText);
/* 1679 */         TopLevelGUI.menuText = mtColor;
/* 1680 */         this.TLGUI.updateColorScheme();
/* 1681 */         return;
/*      */       case 36:
/* 1682 */         Color bColor = JColorChooser.showDialog(this, "Choose Button Color", TopLevelGUI.buttonBackground);
/* 1683 */         TopLevelGUI.buttonBackground = bColor;
/* 1684 */         this.TLGUI.updateColorScheme();
/* 1685 */         return;
/*      */       case 37:
/* 1686 */         Color btColor = JColorChooser.showDialog(this, "Choose Button Text Color", TopLevelGUI.buttonText);
/* 1687 */         TopLevelGUI.buttonText = btColor;
/* 1688 */         this.TLGUI.updateColorScheme();
/* 1689 */         return;
/*      */       case 41:
/* 1690 */         ManualEvent();
/* 1691 */         return;
/*      */       case 42:
/* 1692 */         JFileChooser fc1 = new JFileChooser();
/* 1693 */         fc1.setCurrentDirectory(new File(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[17]));
/* 1694 */         int returnVal1 = fc1.showOpenDialog(this.SelectConfigFileButton);
/*      */ 
/* 1696 */         if (returnVal1 == 0)
/*      */         {
/* 1698 */           File temp = fc1.getSelectedFile();
/* 1699 */           this.ConfigFileLabel.setText(temp.getName());
/* 1700 */           this.ButtonConfigFile = temp;
/*      */         }
/* 1702 */         return;
/*      */       case 43:
/* 1703 */         JFileChooser fc3 = new JFileChooser();
/* 1704 */         fc3.setCurrentDirectory(new File("Scripts/"));
/* 1705 */         fc3.setMultiSelectionEnabled(true);
/* 1706 */         int returnVal3 = fc3.showOpenDialog(this.SelectFilesButton);
/*      */ 
/* 1708 */         if (returnVal3 == 0)
/*      */         {
/* 1710 */           File[] temp = fc3.getSelectedFiles();
/* 1711 */           for (int x = 0; x < temp.length; x++)
/*      */           {
/* 1713 */             this.loadedFiles.add(temp[x]);
/* 1714 */             this.loadedFilesModel.addElement(this.loadedFiles.get(this.loadedFiles.size() - 1));
/*      */           }
/*      */         }
/* 1717 */         return;
/*      */       case 44:
/* 1718 */         JFileChooser fc2 = new JFileChooser();
/* 1719 */         fc2.setCurrentDirectory(new File(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[12]));
/* 1720 */         fc2.setFileSelectionMode(1);
/* 1721 */         int returnVal2 = fc2.showOpenDialog(this.SelectScriptDirectoryButton);
/*      */ 
/* 1723 */         if (returnVal2 == 0)
/*      */         {
/* 1725 */           File temp = fc2.getSelectedFile();
/* 1726 */           this.ScriptDirectoryLabel.setText(temp.getAbsolutePath());
/*      */         }
/* 1728 */         return;
/*      */       case 45:
/* 1729 */         this.SSHPortToggleButton.setSelected(false);
/* 1730 */         return;
/*      */       case 46:
/* 1731 */         this.SerialPortToggleButton.setSelected(false);
/* 1732 */         return;
/*      */       case 47:
/* 1733 */         this.TopToolBarToggleButton.setText(this.TopToolBarToggleButton.isSelected() ? "ON" : "OFF");
/* 1734 */         return;
/*      */       case 48:
/* 1735 */         this.SideToolBarToggleButton.setText(this.SideToolBarToggleButton.isSelected() ? "ON" : "OFF");
/* 1736 */         return;
/*      */       case 49:
/* 1737 */         this.BottomToolBarToggleButton.setText(this.BottomToolBarToggleButton.isSelected() ? "ON" : "OFF");
/* 1738 */         return;
/*      */       case 50:
/* 1739 */         JFileChooser fc4 = new JFileChooser();
/* 1740 */         fc4.setCurrentDirectory(new File(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[13]));
/* 1741 */         fc4.setFileSelectionMode(1);
/* 1742 */         int returnVal4 = fc4.showOpenDialog(this.SelectLibraryDirectoryButton);
/*      */ 
/* 1744 */         if (returnVal4 == 0)
/*      */         {
/* 1746 */           File temp = fc4.getSelectedFile();
/* 1747 */           this.LibraryDirectoryLabel.setText(temp.getAbsolutePath());
/*      */         }
/* 1749 */         return;
/*      */       case 1:
/*      */       case 2:
/*      */       case 3:
/*      */       case 4:
/*      */       case 5:
/*      */       case 6:
/*      */       case 7:
/*      */       case 8:
/*      */       case 9:
/*      */       case 10:
/*      */       case 11:
/*      */       case 12:
/*      */       case 13:
/*      */       case 14:
/*      */       case 15:
/*      */       case 16:
/*      */       case 17:
/*      */       case 18:
/*      */       case 19:
/*      */       case 38:
/*      */       case 39:
/* 1755 */       case 40: }  } catch (Exception e) { e.printStackTrace();
/*      */     }
/*      */   }
/*      */ 
/*      */   private void updateLoadedScripts()
/*      */   {
/*      */     try
/*      */     {
/* 1767 */       this.loadedFiles.clear();
/* 1768 */       this.loadedFilesModel.removeAllElements();
/*      */ 
/* 1770 */       int size = Integer.parseInt(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[22]);
/*      */ 
/* 1772 */       for (int x = 0; x < size; x++)
/*      */       {
/* 1774 */         this.loadedFiles.add(new File(((String[])TopLevelGUI.ConnectionDirectory.get((String)this.ConnectionDirectoryList.getSelectedValue()))[(23 + x)]));
/* 1775 */         this.loadedFilesModel.addElement(this.loadedFiles.get(x));
/*      */       }
/*      */     }
/*      */     catch (Exception e)
/*      */     {
/*      */     }
/*      */   }
/*      */ 
/*      */   private void saveConnectionSettings()
/*      */   {
/* 1792 */     String[] temp = new String[23 + this.loadedFiles.size()];
/*      */ 
/* 1794 */     temp[0] = this.PortNameTextField.getText();
/* 1795 */     if (this.SerialPortToggleButton.isSelected())
/*      */     {
/* 1797 */       temp[1] = ((this.SerialPortEntryBox.getText().equals("")) || (this.SerialPortEntryBox.getText().equals("Scanning...")) ? (String)this.portListingModel.getSelectedItem() : this.SerialPortEntryBox.getText());
/* 1798 */       temp[2] = ("" + this.baudrateModel.getSelectedItem());
/* 1799 */       temp[3] = ("" + this.stopbitsModel.getSelectedItem());
/* 1800 */       temp[4] = ("" + this.databitsModel.getSelectedItem());
/* 1801 */       if (("" + this.parityModel.getSelectedItem()).equals("None"))
/* 1802 */         temp[5] = "0";
/* 1803 */       if (("" + this.parityModel.getSelectedItem()).equals("Even"))
/* 1804 */         temp[5] = "2";
/* 1805 */       if (("" + this.parityModel.getSelectedItem()).equals("Odd"))
/* 1806 */         temp[5] = "1";
/* 1807 */       if (("" + this.parityModel.getSelectedItem()).equals("Mark"))
/* 1808 */         temp[5] = "3";
/* 1809 */       if (("" + this.parityModel.getSelectedItem()).equals("Space")) {
/* 1810 */         temp[5] = "4";
/*      */       }
/*      */     }
/*      */     else
/*      */     {
/* 1815 */       temp[1] = this.SSHPortEntryBox.getText();
/* 1816 */       temp[2] = this.UserNameTextField.getText();
/* 1817 */       temp[3] = new String(this.PasswordTextField.getPassword());
/* 1818 */       temp[4] = this.ShellTypeTextField.getText();
/* 1819 */       temp[5] = "";
/*      */     }
/* 1821 */     temp[6] = ("" + this.ConsoleBoxBackgroundColorComboBox.getSelectedItem());
/* 1822 */     temp[7] = ("" + this.ConsoleBoxTextEditorComboBox.getSelectedItem());
/* 1823 */     temp[8] = ("" + this.ConsoleBoxTextFontComboBox.getSelectedItem());
/* 1824 */     if (this.SameAsCheckBox.isSelected())
/*      */     {
/* 1826 */       temp[9] = ("" + this.ConsoleBoxBackgroundColorComboBox.getSelectedItem());
/* 1827 */       temp[10] = ("" + this.ConsoleBoxTextEditorComboBox.getSelectedItem());
/* 1828 */       temp[11] = ("" + this.ConsoleBoxTextFontComboBox.getSelectedItem());
/*      */     }
/*      */     else
/*      */     {
/* 1832 */       temp[9] = ("" + this.CommandBoxBackgroundColorComboBox.getSelectedItem());
/* 1833 */       temp[10] = ("" + this.CommandBoxTextColorComboBox.getSelectedItem());
/* 1834 */       temp[11] = ("" + this.CommandBoxTextFontComboBox.getSelectedItem());
/*      */     }
/* 1836 */     temp[12] = this.ScriptDirectoryLabel.getText();
/* 1837 */     temp[13] = this.LibraryDirectoryLabel.getText();
/* 1838 */     temp[14] = ("" + this.BottomToolBarToggleButton.isSelected());
/* 1839 */     temp[15] = ("" + this.SideToolBarToggleButton.isSelected());
/* 1840 */     temp[16] = ("" + this.TopToolBarToggleButton.isSelected());
/* 1841 */     temp[17] = this.ButtonConfigFile.getAbsolutePath();
/* 1842 */     temp[18] = (this.SerialPortToggleButton.isSelected() ? "Serial" : "SSH");
/* 1843 */     temp[19] = this.LogBaseNameTextField.getText();
/* 1844 */     temp[20] = this.LogDirectoryLabel.getText();
/* 1845 */     temp[21] = ("" + this.LogOutputTypeCheckBox.isSelected());
/* 1846 */     temp[22] = ("" + this.loadedFiles.size());
/*      */ 
/* 1849 */     for (int x = 0; x < Integer.parseInt(temp[22]); x++)
/*      */     {
/* 1851 */       temp[(23 + x)] = ((File)this.loadedFiles.get(x)).getAbsolutePath();
/*      */     }
/*      */ 
/* 1854 */     TopLevelGUI.ConnectionDirectory.put(temp[0], temp);
/*      */ 
/* 1856 */     JOptionPane.showMessageDialog(null, "Saved Succesfully!");
/*      */   }
/*      */ 
/*      */   public void setSelectedTab(int tab)
/*      */   {
/* 1866 */     this.TabbedOptions.setSelectedIndex(tab);
/*      */   }
/*      */ 
/*      */   private void ManualEvent()
/*      */   {
/* 1874 */     if (this.SerialPortEntryBox.isVisible())
/*      */     {
/* 1876 */       this.ManualEntryButton.setEnabled(false);
/* 1877 */       new Thread() {
/*      */         public void run() {
/* 1879 */           OptionsGUI.this.getPortListing();
/*      */         }
/*      */       }
/* 1877 */       .start();
/*      */ 
/* 1882 */       this.SerialPortEntryBox.setText("Scanning...");
/* 1883 */       this.SerialPortEntryBox.setEnabled(false);
/* 1884 */       this.ManualEntryButton.setText("Manual Entry");
/*      */     }
/*      */     else
/*      */     {
/* 1890 */       this.SerialPortEntryBox.setVisible(true);
/* 1891 */       this.SerialPortComboBox.setVisible(false);
/* 1892 */       this.ManualEntryButton.setText("Scan Ports");
/*      */     }
/*      */   }
/*      */ 
/*      */   public void removeTab(int tab)
/*      */   {
/* 1902 */     this.TabbedOptions.removeTabAt(tab);
/*      */   }
/*      */ 
/*      */   public void getPortListing()
/*      */   {
/* 1909 */     this.portListingModel.removeAllElements();
/* 1910 */     this.portListingModel.addElement("Available Ports:");
/*      */     String[] thePorts;
/*      */     try
/*      */     {
/* 1917 */       thePorts = SerialPortLocal.getPortList();
/*      */     }
/*      */     catch (Exception e)
/*      */     {
/* 1921 */       thePorts = new String[0];
/*      */     }
/*      */ 
/* 1925 */     for (int x = 0; x < thePorts.length; x++)
/*      */     {
/* 1927 */       this.portListingModel.addElement(thePorts[x]);
/*      */     }
/*      */ 
/* 1930 */     this.SerialPortEntryBox.setVisible(false);
/* 1931 */     this.SerialPortComboBox.setVisible(true);
/* 1932 */     this.ManualEntryButton.setEnabled(true);
/* 1933 */     this.SerialPortEntryBox.setEnabled(true);
/* 1934 */     this.SerialPortEntryBox.setText("");
/*      */   }
/*      */ 
/*      */   public void updateConnectionDirectory()
/*      */   {
/*      */     try
/*      */     {
/* 1943 */       this.connectionDirectoryModel.removeAllElements();
/* 1944 */       Object[] temp = TopLevelGUI.ConnectionDirectory.keySet().toArray();
/* 1945 */       for (int x = 0; x < temp.length; x++)
/*      */       {
/* 1947 */         this.connectionDirectoryModel.addElement(temp[x]);
/*      */       }
/*      */     }
/*      */     catch (Exception e)
/*      */     {
/* 1952 */       e.printStackTrace();
/*      */     }
/*      */   }
/*      */ 
/*      */   public void updateColorScheme()
/*      */   {
/* 1960 */     this.TabbedOptions.setBackground(TopLevelGUI.menuBackground);
/*      */ 
/* 1963 */     this.WindowTab.setBackground(TopLevelGUI.windowBackground);
/* 1964 */     this.BackgroundColor.setBackground(TopLevelGUI.windowBackground);
/* 1965 */     this.BackgroundColorLabel.setBackground(TopLevelGUI.windowBackground);
/* 1966 */     this.ButtonColor.setBackground(TopLevelGUI.buttonBackground);
/* 1967 */     this.ButtonColorLabel.setBackground(TopLevelGUI.windowBackground);
/* 1968 */     this.ButtonText.setBackground(TopLevelGUI.buttonText);
/* 1969 */     this.ButtonTextLabel.setBackground(TopLevelGUI.windowBackground);
/* 1970 */     this.ChangeBackgroundColorButton.setBackground(TopLevelGUI.buttonBackground);
/* 1971 */     this.ChangeButtonColorButton.setBackground(TopLevelGUI.buttonBackground);
/* 1972 */     this.ChangeButtonTextButton.setBackground(TopLevelGUI.buttonBackground);
/* 1973 */     this.ChangeMenuColorButton.setBackground(TopLevelGUI.buttonBackground);
/* 1974 */     this.ChangeMenuTextButton.setBackground(TopLevelGUI.buttonBackground);
/* 1975 */     this.ChangeTextColorButton.setBackground(TopLevelGUI.buttonBackground);
/*      */ 
/* 1978 */     this.ColorSchemeLabel.setBackground(TopLevelGUI.windowBackground);
/* 1979 */     this.ColorsPanel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 1981 */     this.LookAndFeelLabel.setBackground(TopLevelGUI.windowBackground);
/* 1982 */     this.MenuColor.setBackground(TopLevelGUI.menuBackground);
/* 1983 */     this.MenuColorLabel.setBackground(TopLevelGUI.windowBackground);
/* 1984 */     this.MenuText.setBackground(TopLevelGUI.menuText);
/* 1985 */     this.MenuTextLabel.setBackground(TopLevelGUI.windowBackground);
/* 1986 */     this.TextColor.setBackground(TopLevelGUI.windowText);
/* 1987 */     this.TextColorLabel.setBackground(TopLevelGUI.windowBackground);
/* 1988 */     this.WindowOptionsPanel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 1992 */     this.ConnectionsTab.setBackground(TopLevelGUI.windowBackground);
/* 1993 */     this.CardsPanel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 1996 */     this.ConnectionDirectoryPanel.setBackground(TopLevelGUI.windowBackground);
/* 1997 */     this.ConnectionDirectoryLabel.setBackground(TopLevelGUI.windowBackground);
/* 1998 */     this.jScrollPane2.setBackground(TopLevelGUI.windowBackground);
/* 1999 */     this.ConnectionDirectoryList.setBackground(TopLevelGUI.windowBackground);
/* 2000 */     this.ConnectionDirectoryList.setSelectionBackground(TopLevelGUI.selectionBackground);
/* 2001 */     this.PropertiesAndSettingsLabel.setBackground(TopLevelGUI.windowBackground);
/* 2002 */     this.NamePropertiesButton.setBackground(TopLevelGUI.buttonBackground);
/* 2003 */     this.ToolBarsButton.setBackground(TopLevelGUI.buttonBackground);
/* 2004 */     this.ScriptsButton.setBackground(TopLevelGUI.buttonBackground);
/*      */ 
/* 2006 */     this.PortSettingsButton.setBackground(TopLevelGUI.buttonBackground);
/* 2007 */     this.FontsAndColorsButton.setBackground(TopLevelGUI.buttonBackground);
/* 2008 */     this.CreateNewConnectionButton.setBackground(TopLevelGUI.buttonBackground);
/* 2009 */     this.DeleteConnectionButton.setBackground(TopLevelGUI.buttonBackground);
/*      */ 
/* 2012 */     this.LogBaseNameLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2014 */     this.LogDirectoryLabel.setBackground(TopLevelGUI.windowBackground);
/* 2015 */     this.LogOptionLabel.setBackground(TopLevelGUI.windowBackground);
/* 2016 */     this.LogOutputTypeCheckBox.setBackground(TopLevelGUI.windowBackground);
/* 2017 */     this.LogSelectDirectoryButton.setBackground(TopLevelGUI.buttonBackground);
/* 2018 */     this.NamePropertiesPanel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2021 */     this.PortNameLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2023 */     this.PortTypeLabel.setBackground(TopLevelGUI.windowBackground);
/* 2024 */     this.SSHPortToggleButton.setBackground(TopLevelGUI.buttonBackground);
/* 2025 */     this.SerialPortToggleButton.setBackground(TopLevelGUI.buttonBackground);
/*      */ 
/* 2028 */     this.FontsAndColorsPanel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2030 */     this.ConsoleBoxBackgroundColorLabel.setBackground(TopLevelGUI.windowBackground);
/* 2031 */     this.ConsoleBoxTextColorLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2034 */     this.ConsoleBoxTextFontLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2036 */     this.CommandBoxBackgroundColorLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2038 */     this.CommandBoxTextColorLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2040 */     this.CommandBoxTextFontLabel.setBackground(TopLevelGUI.windowBackground);
/* 2041 */     this.SameAsCheckBox.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2045 */     this.ScriptsPanel.setBackground(TopLevelGUI.windowBackground);
/* 2046 */     this.jScrollPane3.setBackground(TopLevelGUI.windowBackground);
/* 2047 */     this.SelectScriptDirectoryButton.setBackground(TopLevelGUI.buttonBackground);
/* 2048 */     this.SelectFilesButton.setBackground(TopLevelGUI.buttonBackground);
/* 2049 */     this.SelectedScriptsLabel.setBackground(TopLevelGUI.windowBackground);
/* 2050 */     this.SelectedScriptsList.setBackground(TopLevelGUI.windowBackground);
/* 2051 */     this.SelectedScriptsList.setSelectionBackground(TopLevelGUI.selectionBackground);
/* 2052 */     this.SetScriptDirectoryLabel.setBackground(TopLevelGUI.windowBackground);
/* 2053 */     this.ScriptDirectoryLabel.setBackground(TopLevelGUI.windowBackground);
/* 2054 */     this.SetLibraryDirectoryLabel.setBackground(TopLevelGUI.windowBackground);
/* 2055 */     this.LibraryDirectoryLabel.setBackground(TopLevelGUI.windowBackground);
/* 2056 */     this.SelectLibraryDirectoryButton.setBackground(TopLevelGUI.buttonBackground);
/*      */ 
/* 2060 */     this.SerialPortSettingsPanel.setBackground(TopLevelGUI.windowBackground);
/* 2061 */     this.SerialPortLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2065 */     this.BaudRateLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2067 */     this.ParityConnectionLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2069 */     this.DataBitsLabel.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2071 */     this.StopBitsLabel.setBackground(TopLevelGUI.windowBackground);
/* 2072 */     this.ManualEntryButton.setBackground(TopLevelGUI.buttonBackground);
/*      */ 
/* 2076 */     this.SSHPortSettingsPanel.setBackground(TopLevelGUI.windowBackground);
/* 2077 */     this.SSHPortLabel.setBackground(TopLevelGUI.windowBackground);
/* 2078 */     this.SSHPortEntryBox.setBackground(TopLevelGUI.windowBackground);
/* 2079 */     this.UserNameLabel.setBackground(TopLevelGUI.windowBackground);
/* 2080 */     this.UserNameTextField.setBackground(TopLevelGUI.windowBackground);
/* 2081 */     this.PasswordLabel.setBackground(TopLevelGUI.windowBackground);
/* 2082 */     this.PasswordTextField.setBackground(TopLevelGUI.windowBackground);
/* 2083 */     this.ShellTypeLabel.setBackground(TopLevelGUI.windowBackground);
/* 2084 */     this.ShellTypeTextField.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2088 */     this.ToolBarsPanel.setBackground(TopLevelGUI.windowBackground);
/* 2089 */     this.TopToolBarLabel.setBackground(TopLevelGUI.windowBackground);
/* 2090 */     this.TopToolBarToggleButton.setBackground(TopLevelGUI.buttonBackground);
/* 2091 */     this.SideToolBarLabel.setBackground(TopLevelGUI.windowBackground);
/* 2092 */     this.SideToolBarToggleButton.setBackground(TopLevelGUI.buttonBackground);
/* 2093 */     this.BottomToolBarLabel.setBackground(TopLevelGUI.windowBackground);
/* 2094 */     this.BottomToolBarToggleButton.setBackground(TopLevelGUI.buttonBackground);
/* 2095 */     this.ConfigFileLabel.setBackground(TopLevelGUI.windowBackground);
/* 2096 */     this.SelectConfigFileButton.setBackground(TopLevelGUI.buttonBackground);
/*      */ 
/* 2099 */     this.jScrollPane1.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2102 */     this.HelpAndSupportTab.setBackground(TopLevelGUI.windowBackground);
/* 2103 */     this.jPanel1.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2105 */     this.AdvancedOptionsPanel.setBackground(TopLevelGUI.windowBackground);
/* 2106 */     this.CVCLabel.setBackground(TopLevelGUI.windowBackground);
/* 2107 */     this.CVCTextArea.setBackground(TopLevelGUI.windowBackground);
/* 2108 */     this.FileLocationsLabel.setBackground(TopLevelGUI.windowBackground);
/* 2109 */     this.FileLocationsTextArea.setBackground(TopLevelGUI.windowBackground);
/* 2110 */     this.FutherAssistanceLabel.setBackground(TopLevelGUI.windowBackground);
/* 2111 */     this.ScriptWithLibrariesLabel.setBackground(TopLevelGUI.windowBackground);
/* 2112 */     this.ScriptWithLibrariesTextArea.setBackground(TopLevelGUI.windowBackground);
/* 2113 */     this.ScriptWithoutLibrariesLabel.setBackground(TopLevelGUI.windowBackground);
/* 2114 */     this.ScriptsWithoutLibrariesTextArea.setBackground(TopLevelGUI.windowBackground);
/* 2115 */     this.jScrollPane4.setBackground(TopLevelGUI.windowBackground);
/*      */ 
/* 2118 */     this.TabbedOptions.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2121 */     this.WindowTab.setForeground(TopLevelGUI.windowText);
/* 2122 */     this.BackgroundColor.setForeground(TopLevelGUI.windowText);
/* 2123 */     this.BackgroundColorLabel.setForeground(TopLevelGUI.windowText);
/* 2124 */     this.ButtonColor.setForeground(TopLevelGUI.windowText);
/* 2125 */     this.ButtonColorLabel.setForeground(TopLevelGUI.windowText);
/* 2126 */     this.ButtonText.setForeground(TopLevelGUI.windowText);
/* 2127 */     this.ButtonTextLabel.setForeground(TopLevelGUI.windowText);
/* 2128 */     this.ChangeBackgroundColorButton.setForeground(TopLevelGUI.buttonText);
/* 2129 */     this.ChangeButtonColorButton.setForeground(TopLevelGUI.buttonText);
/* 2130 */     this.ChangeButtonTextButton.setForeground(TopLevelGUI.buttonText);
/* 2131 */     this.ChangeMenuColorButton.setForeground(TopLevelGUI.buttonText);
/* 2132 */     this.ChangeMenuTextButton.setForeground(TopLevelGUI.buttonText);
/* 2133 */     this.ChangeTextColorButton.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2135 */     this.ColorSchemeLabel.setForeground(TopLevelGUI.windowText);
/* 2136 */     this.ColorsPanel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2138 */     this.LookAndFeelLabel.setForeground(TopLevelGUI.windowText);
/* 2139 */     this.MenuColor.setForeground(TopLevelGUI.windowText);
/* 2140 */     this.MenuColorLabel.setForeground(TopLevelGUI.windowText);
/* 2141 */     this.MenuText.setForeground(TopLevelGUI.windowText);
/* 2142 */     this.MenuTextLabel.setForeground(TopLevelGUI.windowText);
/* 2143 */     this.TextColor.setForeground(TopLevelGUI.windowText);
/* 2144 */     this.TextColorLabel.setForeground(TopLevelGUI.windowText);
/* 2145 */     this.WindowOptionsPanel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2149 */     this.ConnectionsTab.setForeground(TopLevelGUI.buttonText);
/* 2150 */     this.CardsPanel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2153 */     this.ConnectionDirectoryPanel.setForeground(TopLevelGUI.windowText);
/* 2154 */     this.ConnectionDirectoryLabel.setForeground(TopLevelGUI.windowText);
/* 2155 */     this.jScrollPane2.setForeground(TopLevelGUI.windowText);
/* 2156 */     this.ConnectionDirectoryList.setForeground(TopLevelGUI.windowText);
/* 2157 */     this.ConnectionDirectoryList.setSelectionForeground(TopLevelGUI.windowText);
/* 2158 */     this.PropertiesAndSettingsLabel.setForeground(TopLevelGUI.windowText);
/* 2159 */     this.NamePropertiesButton.setForeground(TopLevelGUI.buttonText);
/* 2160 */     this.ToolBarsButton.setForeground(TopLevelGUI.buttonText);
/* 2161 */     this.ScriptsButton.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2163 */     this.PortSettingsButton.setForeground(TopLevelGUI.buttonText);
/* 2164 */     this.FontsAndColorsButton.setForeground(TopLevelGUI.buttonText);
/* 2165 */     this.CreateNewConnectionButton.setForeground(TopLevelGUI.buttonText);
/* 2166 */     this.DeleteConnectionButton.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2169 */     this.LogBaseNameLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2171 */     this.LogDirectoryLabel.setForeground(TopLevelGUI.windowText);
/* 2172 */     this.LogOptionLabel.setForeground(TopLevelGUI.windowText);
/* 2173 */     this.LogOutputTypeCheckBox.setForeground(TopLevelGUI.windowText);
/* 2174 */     this.LogSelectDirectoryButton.setForeground(TopLevelGUI.buttonText);
/* 2175 */     this.NamePropertiesPanel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2178 */     this.PortNameLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2180 */     this.PortTypeLabel.setForeground(TopLevelGUI.windowText);
/* 2181 */     this.SSHPortToggleButton.setForeground(TopLevelGUI.buttonText);
/* 2182 */     this.SerialPortToggleButton.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2185 */     this.FontsAndColorsPanel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2187 */     this.ConsoleBoxBackgroundColorLabel.setForeground(TopLevelGUI.windowText);
/* 2188 */     this.ConsoleBoxTextColorLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2191 */     this.ConsoleBoxTextFontLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2193 */     this.CommandBoxBackgroundColorLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2195 */     this.CommandBoxTextColorLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2197 */     this.CommandBoxTextFontLabel.setForeground(TopLevelGUI.windowText);
/* 2198 */     this.SameAsCheckBox.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2202 */     this.ScriptsPanel.setForeground(TopLevelGUI.windowText);
/* 2203 */     this.jScrollPane3.setForeground(TopLevelGUI.windowText);
/* 2204 */     this.SelectScriptDirectoryButton.setForeground(TopLevelGUI.buttonText);
/* 2205 */     this.SelectFilesButton.setForeground(TopLevelGUI.buttonText);
/* 2206 */     this.SelectedScriptsLabel.setForeground(TopLevelGUI.windowText);
/* 2207 */     this.SelectedScriptsList.setForeground(TopLevelGUI.windowText);
/* 2208 */     this.SelectedScriptsList.setSelectionForeground(TopLevelGUI.windowText);
/* 2209 */     this.SetScriptDirectoryLabel.setForeground(TopLevelGUI.windowText);
/* 2210 */     this.ScriptDirectoryLabel.setForeground(TopLevelGUI.windowText);
/* 2211 */     this.SetLibraryDirectoryLabel.setForeground(TopLevelGUI.windowText);
/* 2212 */     this.LibraryDirectoryLabel.setForeground(TopLevelGUI.windowText);
/* 2213 */     this.SelectLibraryDirectoryButton.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2217 */     this.SerialPortSettingsPanel.setForeground(TopLevelGUI.windowText);
/* 2218 */     this.SerialPortLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2222 */     this.BaudRateLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2224 */     this.ParityConnectionLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2226 */     this.DataBitsLabel.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2228 */     this.StopBitsLabel.setForeground(TopLevelGUI.windowText);
/* 2229 */     this.ManualEntryButton.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2233 */     this.SSHPortSettingsPanel.setForeground(TopLevelGUI.windowText);
/* 2234 */     this.SSHPortLabel.setForeground(TopLevelGUI.windowText);
/* 2235 */     this.SSHPortEntryBox.setForeground(TopLevelGUI.windowText);
/* 2236 */     this.UserNameLabel.setForeground(TopLevelGUI.windowText);
/* 2237 */     this.UserNameTextField.setForeground(TopLevelGUI.windowText);
/* 2238 */     this.PasswordLabel.setForeground(TopLevelGUI.windowText);
/* 2239 */     this.PasswordTextField.setForeground(TopLevelGUI.windowText);
/* 2240 */     this.ShellTypeLabel.setForeground(TopLevelGUI.windowText);
/* 2241 */     this.ShellTypeTextField.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2245 */     this.ToolBarsPanel.setForeground(TopLevelGUI.windowText);
/* 2246 */     this.TopToolBarLabel.setForeground(TopLevelGUI.windowText);
/* 2247 */     this.TopToolBarToggleButton.setForeground(TopLevelGUI.buttonText);
/* 2248 */     this.SideToolBarLabel.setForeground(TopLevelGUI.windowText);
/* 2249 */     this.SideToolBarToggleButton.setForeground(TopLevelGUI.buttonText);
/* 2250 */     this.BottomToolBarLabel.setForeground(TopLevelGUI.windowText);
/* 2251 */     this.BottomToolBarToggleButton.setForeground(TopLevelGUI.buttonText);
/* 2252 */     this.ConfigFileLabel.setForeground(TopLevelGUI.windowText);
/* 2253 */     this.SelectConfigFileButton.setForeground(TopLevelGUI.buttonText);
/*      */ 
/* 2256 */     this.jScrollPane1.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2259 */     this.HelpAndSupportTab.setForeground(TopLevelGUI.windowText);
/* 2260 */     this.jPanel1.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2262 */     this.AdvancedOptionsPanel.setForeground(TopLevelGUI.windowText);
/* 2263 */     this.CVCLabel.setForeground(TopLevelGUI.windowText);
/* 2264 */     this.CVCTextArea.setForeground(TopLevelGUI.windowText);
/* 2265 */     this.FileLocationsLabel.setForeground(TopLevelGUI.windowText);
/* 2266 */     this.FileLocationsTextArea.setForeground(TopLevelGUI.windowText);
/* 2267 */     this.FutherAssistanceLabel.setForeground(TopLevelGUI.windowText);
/* 2268 */     this.ScriptWithLibrariesLabel.setForeground(TopLevelGUI.windowText);
/* 2269 */     this.ScriptWithLibrariesTextArea.setForeground(TopLevelGUI.windowText);
/* 2270 */     this.ScriptWithoutLibrariesLabel.setForeground(TopLevelGUI.windowText);
/* 2271 */     this.ScriptsWithoutLibrariesTextArea.setForeground(TopLevelGUI.windowText);
/* 2272 */     this.jScrollPane4.setForeground(TopLevelGUI.windowText);
/*      */ 
/* 2274 */     pack();
/*      */   }
/*      */ 
/*      */   static
/*      */   {
/* 2438 */     COLORS.put("WHITE", new Color(16777215));
/* 2439 */     COLORS.put("MAGENTA", new Color(8323113));
/* 2440 */     COLORS.put("RED", new Color(9371648));
/* 2441 */     COLORS.put("GREEN", new Color(29184));
/* 2442 */     COLORS.put("YELLOW", new Color(9408256));
/* 2443 */     COLORS.put("GRAY", new Color(5592405));
/* 2444 */     COLORS.put("ORANGE", new Color(9388288));
/* 2445 */     COLORS.put("BLUE", new Color(98));
/* 2446 */     COLORS.put("CYAN", new Color(22102));
/* 2447 */     COLORS.put("PINK", new Color(12330534));
/* 2448 */     COLORS.put("BLACK", new Color(0));
/*      */   }
/*      */ }

/* Location:           F:\6-30-2012\Hazell\
 * Qualified Name:     hmc.OptionsGUI
 * JD-Core Version:    0.6.0
 */